diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-28 15:35:35 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-28 14:34:01 +0000 |
commit | c3ddc2e8124b7b03279d6d3a1b76858cc7763af1 (patch) | |
tree | 6f0ba388651bd7273bb774b3b34700b182d90792 /src/quicktemplates2/qquickdrawer.cpp | |
parent | b3370f3c5b3ec7993c5f5ff835714c9c7a42dd17 (diff) |
QQuickDrawer: fix flicking inside drawers
The pressPoint must be stored before rejecting a press event,
to be able to calculate correctly when to steal/grab move.
Change-Id: I4c9225fdaf730800fec30b3f37a2a0fe773e8b03
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer.cpp')
-rw-r--r-- | src/quicktemplates2/qquickdrawer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp index 76a09d11..44500bd3 100644 --- a/src/quicktemplates2/qquickdrawer.cpp +++ b/src/quicktemplates2/qquickdrawer.cpp @@ -382,13 +382,13 @@ static const qreal openCloseVelocityThreshold = 300; bool QQuickDrawerPrivate::handlePress(QQuickItem *item, const QPointF &point, ulong timestamp) { - if (!QQuickPopupPrivate::handlePress(item, point, timestamp)) - return false; - offset = 0; pressPoint = point; velocityCalculator.startMeasuring(point, timestamp); + if (!QQuickPopupPrivate::handlePress(item, point, timestamp)) + return false; + return true; } |