From 7b3e55d2c7c77013fec8103bf52c2cbb23fb4935 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 17 May 2021 04:17:40 +0200 Subject: :( --- src/Body.cpp | 9 +++++++-- 1 file 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--; -- cgit v1.2.3