aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4arraybuffer.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-08-16 15:50:18 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-08-26 01:57:11 +0200
commit68dc224920ddf3aeb67a87d9b983107a88fd7974 (patch)
treee6b6ea5ab1418d5399f0f431f39888fa0b901b20 /src/qml/jsruntime/qv4arraybuffer.cpp
parentfc088c4d5a8d74bc477e5924fd01b9dad6ec6e8c (diff)
Allow implicit mouse grab by accepting only on press
If we install a DragHandler on a Controls Button and try to drag it: on press, the DragHandler takes a passive grab, and the Button accepts the event, which gives it an implicit exclusive grab. Then when we drag past the drag threshold, the DragHandler takes over the exclusive grab; but we also deliver the mouse move to the Button, because it already had the exclusive grab before. It doesn't ignore() the event, but we do not want to interpret the accepted state as a reason for the Button to re-grab the mouse, because it's just a move, not a press. This should restore the behavior to what we had in Qt 5. Pick-to: 6.4 Task-number: QTBUG-105610 Change-Id: I77e185b2737da19848e206cf08fc62cf62930d92 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arraybuffer.cpp')
0 files changed, 0 insertions, 0 deletions