1
Fork 0
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:
Valtteri Koskivuori 2020-04-21 10:54:46 +03:00 committed by GitHub
parent a47b9fe490
commit 3339a77f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();