From a1fd7d5d663ae96a78fee5f6dfc332507df3771d Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Thu, 23 Mar 2017 17:37:56 +0100 Subject: Fix rotation gesture start This patch makes the rotation gesture start more smoothly instead of abruptingly start with an initial rotation equal to starting angle threshold, once this threshold angle has been trespassed. Change-Id: I2be52fa53f50151b9b87244a1b53ca4105121a8b Reviewed-by: Bruno de Oliveira Abinader Reviewed-by: Alex Blasche --- src/location/declarativemaps/qquickgeomapgesturearea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/location/declarativemaps/qquickgeomapgesturearea.cpp') diff --git a/src/location/declarativemaps/qquickgeomapgesturearea.cpp b/src/location/declarativemaps/qquickgeomapgesturearea.cpp index 8bb1d2db..39cf8a71 100644 --- a/src/location/declarativemaps/qquickgeomapgesturearea.cpp +++ b/src/location/declarativemaps/qquickgeomapgesturearea.cpp @@ -71,7 +71,7 @@ static const qreal MaximumParallelPosition = 40.0; // in degrees // Tolerance for detecting parallel sliding static const qreal MaximumParallelSlidingAngle = 4.0; // in degrees // Tolerance for starting rotation -static const qreal MinimumRotationStartingAngle = 8.0; // in degrees +static const qreal MinimumRotationStartingAngle = 15.0; // in degrees // Tolerance for starting pinch static const qreal MinimumPinchDelta = 40; // in pixels // Tolerance for starting tilt when sliding vertical @@ -1415,7 +1415,7 @@ bool QQuickGeoMapGestureArea::canStartRotation() void QQuickGeoMapGestureArea::startRotation() { m_pinch.m_rotation.m_startBearing = m_declarativeMap->bearing(); - m_pinch.m_rotation.m_previousTouchAngle = m_twoTouchAngleStart; + m_pinch.m_rotation.m_previousTouchAngle = m_twoTouchAngle; m_pinch.m_rotation.m_totalAngle = 0.0; } -- cgit v1.2.3