diff --git a/repos/gems/src/lib/dialog/text_area_widget.cc b/repos/gems/src/lib/dialog/text_area_widget.cc index 7dfeadf9aa..93cf08f4e2 100644 --- a/repos/gems/src/lib/dialog/text_area_widget.cc +++ b/repos/gems/src/lib/dialog/text_area_widget.cc @@ -629,7 +629,8 @@ void Text_area_widget::handle_event(Event const &event, Action &action) if (all_lines_visible) _scroll.y.value = 0; - _sanitize_scroll_position(); + if (event.event.press() && !event.event.key_press(Input::BTN_LEFT)) + _sanitize_scroll_position(); if (update_dialog) action.refresh_text_area();