diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-03-23 17:37:56 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-03-27 11:22:42 +0000 |
commit | a1fd7d5d663ae96a78fee5f6dfc332507df3771d (patch) | |
tree | 6e620b284a04119b4d763eb4447758499646afb5 /src/location/declarativemaps/qquickgeomapgesturearea.cpp | |
parent | e924f737a6f28792a682f0dcce63a5442cdd43ce (diff) |
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 <brunoabinader@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qquickgeomapgesturearea.cpp')
-rw-r--r-- | src/location/declarativemaps/qquickgeomapgesturearea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |