diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-17 04:17:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-17 04:17:40 +0200 |
commit | 7b3e55d2c7c77013fec8103bf52c2cbb23fb4935 (patch) | |
tree | 4bf849e78eb590f6861cdd1a81380a31ebcbb877 /src | |
parent | 28168bb3a63b7506a79441d6ce5ed312ba6f6e1a (diff) |
:(
Diffstat (limited to 'src')
-rw-r--r-- | src/Body.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index d7a4456..df9ba41 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -501,8 +501,13 @@ namespace QuickMedia { const bool scroll_past_first = first_item_fully_visible && offset_to_top > 0.1f; const bool scroll_past_last = last_item_fully_visible && offset_to_bottom > 0.1f; - if((attach_side == AttachSide::BOTTOM && scroll_past_first) || (attach_side == AttachSide::TOP && scroll_past_last)) - body_size_changed = true; + if(std::abs(mouse_scroll_accel.y) > 0.1) { + if((attach_side == AttachSide::BOTTOM && scroll_past_first) || (attach_side == AttachSide::TOP && scroll_past_last)) + body_size_changed = true; + } else { + if((attach_side == AttachSide::TOP && scroll_past_first) || (attach_side == AttachSide::BOTTOM && scroll_past_last)) + body_size_changed = true; + } bool keep_selected_inside_body = clamp_selected_item_to_body_count > 0 || offset_to_top > 0.1f || offset_to_bottom > 0.1f; clamp_selected_item_to_body_count--; |