From e396c1908dd1b06f4139db4179890de3bdb5ab95 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 28 May 2015 16:10:46 +0200 Subject: Double pan dragStartDistance in mapgesturearea Commit 929c9a46aaa75ec3c77a226eb9e8a2e956e4763c makes slider in mapviewer impossible to drag, double the drag distance for now Change-Id: Ie9aa8ca17c87b74dd0e22cdb4e5b0845ca652827 Reviewed-by: Alex Blasche --- src/imports/location/qdeclarativegeomapgesturearea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imports/location/qdeclarativegeomapgesturearea.cpp b/src/imports/location/qdeclarativegeomapgesturearea.cpp index b18864eb..2fabd2b3 100644 --- a/src/imports/location/qdeclarativegeomapgesturearea.cpp +++ b/src/imports/location/qdeclarativegeomapgesturearea.cpp @@ -1049,7 +1049,7 @@ bool QDeclarativeGeoMapGestureArea::canStartPan() // Check if thresholds for normal panning are met. // (normal panning vs flicking: flicking will start from mouse release event). - const int startDragDistance = qApp->styleHints()->startDragDistance(); + const int startDragDistance = qApp->styleHints()->startDragDistance() * 2; QPointF p1 = declarativeMap_->mapFromScene(m_allPoints.at(0).scenePos()); int dyFromPress = int(p1.y() - sceneStartPoint1_.y()); int dxFromPress = int(p1.x() - sceneStartPoint1_.x()); -- cgit v1.2.3