summaryrefslogtreecommitdiff
path: root/examples/location/minimal_map/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location/minimal_map/main.qml')
-rw-r--r--examples/location/minimal_map/main.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/location/minimal_map/main.qml b/examples/location/minimal_map/main.qml
index d536943e..7093ceb6 100644
--- a/examples/location/minimal_map/main.qml
+++ b/examples/location/minimal_map/main.qml
@@ -43,6 +43,11 @@ Window {
}
WheelHandler {
id: wheel
+ // workaround for QTBUG-87646 / QTBUG-112394:
+ // Magic Mouse pretends to be a trackpad but doesn't work with PinchHandler
+ acceptedDevices: Qt.platform.pluginName === "cocoa"
+ ? PointerDevice.Mouse | PointerDevice.TouchPad
+ : PointerDevice.Mouse
rotationScale: 1/120
property: "zoomLevel"
}