Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.2.7, 6.3.2, 6.4.3
-
None
-
macOS 12.6.3
Qt 6.3.2, 6.4.3
Description
Sometimes, after pinch gestures on macbook's touchpad, TapHandlers start working incorrectly.
Please see attached example.
TapHandler is configured to accept Qt.RightButton only, but it accepts left button click.
TapHandler { id: rightButtonTH acceptedButtons: Qt.RightButton onTapped: function(eventPoint, button) { console.debug("Right button handler tapped: " + button) if (!(button & rightButtonTH.acceptedButtons)) { console.error("Right button handler - WRONG BUTTON") } } }
The result is on screenshot. rightButtonTH emits tapped, while it should accept right button only, and left button is clicked.
To reproduce with attached example:
Compile and run the app, mouse cursor should be outside the window. Move cursor to the white area of the window. Do a quick pinch gestures (like zoom in - zoom out). Then move cursor over inner rectangle and press left button (just 1 finger tap).
eventFilter correctly shows left button, all TapHandlers also show left button, however TapHandler that should process right button only - is triggered also.
Note: it reproduces not in 100% of tries.
Attachments
Issue Links
- relates to
-
QTBUG-111557 A left button click followed by a right button click triggers a doubleTabbed event
-
- Closed
-