mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user