Review everything shipped this weekend, and fix what the reviewers caught
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -187,6 +187,17 @@ Item {
|
||||
}
|
||||
|
||||
onPressed: mev => {
|
||||
// A press arriving while a drag is still marked active means the
|
||||
// last one never got its release -- a grab stolen by a surface that
|
||||
// opened over the dock, most often. Clearing the flag alone would
|
||||
// leave DockBody still holding a dragIndex, and with it the
|
||||
// interaction hold that keeps the dock revealed forever; the drag
|
||||
// has to be cancelled through the same path a stolen grab uses.
|
||||
if (mouse.dragActive) {
|
||||
mouse.dragActive = false;
|
||||
mouse.dragConsumed = false;
|
||||
root.dragCancelled();
|
||||
}
|
||||
mouse.pressX = mev.x;
|
||||
mouse.pressY = mev.y;
|
||||
mouse.dragActive = false;
|
||||
|
||||
Reference in New Issue
Block a user