aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-11-29 21:30:24 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2022-11-30 23:43:28 +0100
commit786e1748d4469c135a922a221024f3f9c421c0de (patch)
tree3d919e5d8881332864f9a6e5081d092595c91931
parent73005733e3f5b561ed4223f5e838784f253594fa (diff)
doc: Add note to PinchHandler.translation property about macOS trackpad
Translation doesn't happen with trackpad native gestures. Fixes: QTBUG-109002 Pick-to: 5.15 6.2 6.4 Change-Id: I7d42b0d737d45405732a389560a6c77624831c9e Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/quick/handlers/qquickpinchhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp
index aaf09c1624..6fec0feaa1 100644
--- a/src/quick/handlers/qquickpinchhandler.cpp
+++ b/src/quick/handlers/qquickpinchhandler.cpp
@@ -472,6 +472,9 @@ void QQuickPinchHandler::handlePointerEventImpl(QPointerEvent *event)
The translation of the gesture \l centroid. It is \c (0, 0) when the
gesture begins.
+
+ \note On some touchpads, such as on a \macos trackpad, native gestures do
+ not generate any translation values, and this property stays at \c (0, 0).
*/
QT_END_NAMESPACE