aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickdrawer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickdrawer.cpp')
-rw-r--r--src/quicktemplates2/qquickdrawer.cpp6
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;
}