Skip to content

Commit 9c23e9d

Browse files
committed
Scroll on mouse-down (instead of mouse-up) in the empty area of a scrollbar.
1 parent e3bae00 commit 9c23e9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/scrollbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def render_bar(
138138
start_index, start_bar = divmod(max(0, start), len_bars)
139139
end_index, end_bar = divmod(max(0, end), len_bars)
140140

141-
upper = {"@mouse.up": "scroll_up"}
142-
lower = {"@mouse.up": "scroll_down"}
141+
upper = {"@mouse.down": "scroll_up"}
142+
lower = {"@mouse.down": "scroll_down"}
143143

144144
upper_back_segment = Segment(blank, _Style(bgcolor=back, meta=upper))
145145
lower_back_segment = Segment(blank, _Style(bgcolor=back, meta=lower))

0 commit comments

Comments
 (0)