diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-03-07 13:56:33 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-03-07 12:56:55 +0000 |
commit | 7320a13eea9cd7c1fa6ecebacc10c28bbd597914 (patch) | |
tree | fd6ae9b80abe35dd42c219a5bbb93e4541992775 | |
parent | 03e249d5f4a4232cf96bd1127c4e1da7886ceac5 (diff) |
Fix glitch
If the handler is not enabled we have to ignore this event.
Change-Id: I609bc4a5f87f2a2c404fbcb5b21007b4251e4e96
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | examples/TransitionItem/imports/TransitionView/SwipeInteraction.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/TransitionItem/imports/TransitionView/SwipeInteraction.qml b/examples/TransitionItem/imports/TransitionView/SwipeInteraction.qml index 37a29ce..3516082 100644 --- a/examples/TransitionItem/imports/TransitionView/SwipeInteraction.qml +++ b/examples/TransitionItem/imports/TransitionView/SwipeInteraction.qml @@ -111,6 +111,9 @@ Item { } onCentroidChanged: { + if (!handler.enabled) + return + var p = Math.abs(distance()) * 100 if (transitionView.currentTransition) |