mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibGUI: Don't accelerate TextEditor autoscroll on wiggle (#1897)
This little tweak fixes the issue where the scrolling speeds up significantly if the user wiggles their cursor. Just something obvious I spotted while watching the video :^)
This commit is contained in:
parent
a47b9fe490
commit
3339a77f6c
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ void TextEditor::mouseup_event(MouseEvent& event)
|
|||
void TextEditor::mousemove_event(MouseEvent& event)
|
||||
{
|
||||
m_last_mousemove_position = event.position();
|
||||
if (m_in_drag_select) {
|
||||
if (m_in_drag_select && !m_automatic_selection_scroll_timer->is_active()) {
|
||||
set_cursor(text_position_at(event.position()));
|
||||
m_selection.set_end(m_cursor);
|
||||
did_update_selection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue