mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 14:37:50 +00:00
dialog: allow out-of-view cursor when scrolling
This patch relaxes the counter-intuitive enforcement of keeping the text cursor always in view when using the scroll wheel. Issue #5174
This commit is contained in:
parent
e04336d087
commit
8875e3b879
@ -629,6 +629,7 @@ void Text_area_widget::handle_event(Event const &event, Action &action)
|
|||||||
if (all_lines_visible)
|
if (all_lines_visible)
|
||||||
_scroll.y.value = 0;
|
_scroll.y.value = 0;
|
||||||
|
|
||||||
|
if (event.event.press() && !event.event.key_press(Input::BTN_LEFT))
|
||||||
_sanitize_scroll_position();
|
_sanitize_scroll_position();
|
||||||
|
|
||||||
if (update_dialog)
|
if (update_dialog)
|
||||||
|
Loading…
Reference in New Issue
Block a user