Merge pull request #5991 from fancidev/scroll

Scroll on mouse-down (instead of up) in the empty area of a scrollbar
This commit is contained in:
Will McGugan
2025-07-31 08:02:30 +01:00
committed by GitHub

View File

@@ -138,8 +138,8 @@ class ScrollBarRender:
start_index, start_bar = divmod(max(0, start), len_bars)
end_index, end_bar = divmod(max(0, end), len_bars)
upper = {"@mouse.up": "scroll_up"}
lower = {"@mouse.up": "scroll_down"}
upper = {"@mouse.down": "scroll_up"}
lower = {"@mouse.down": "scroll_down"}
upper_back_segment = Segment(blank, _Style(bgcolor=back, meta=upper))
lower_back_segment = Segment(blank, _Style(bgcolor=back, meta=lower))