mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibGUI: Don't restart AbstractView drag on mousemove after escape key
Previously, if a drag operation was aborted by pressing the escape key (handled by WindowServer), the drag would immediately restart if you moved the mouse cursor before releasing the mouse button.
This commit is contained in:
parent
58823c474e
commit
bac200885c
Notes:
sideshowbarker
2024-07-18 12:04:44 +09:00
Author: https://github.com/awesomekling
Commit: bac200885c
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ void AbstractView::mousemove_event(MouseEvent& event)
|
|||
break;
|
||||
case DragOperation::Outcome::Cancelled:
|
||||
dbgln("Drag was cancelled!");
|
||||
m_might_drag = false;
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue