Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.2.4
-
None
-
macOS 12.3.1
Description
The attached QML code has both a MultiPointTouchArea and MouseArea. The MouseArea is used to bring up a context menu with a Right-click. The MultiPointTouchArea is completely disabled in this example, but in my real app it is needed to handle Trackpad pinch-zooming.
Everything works fine with this code, except when using macOS with the Trackpad system preferences set to "Secondary click with two fingers" (which is the default for macOS).
If I comment-out the MultiPointTouchArea, then the two-finger click works fine.
Right-clicking with a real mouse works fine, so does using the bottom-corner click setting.
In the MouseArea, I experimented using either onClicked or onPressed. When the bug is present, the clicked signal is not emitted at all. The pressed signal is emitted, but something happens to the popup Menu to cause it to be removed as soon as the two-finger click is released.