summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-08-15 17:34:04 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-08-15 20:34:29 +0300
commit8e1bd18eae73ffbe14aa9297a039e2431d40bd36 (patch)
tree50749fe9e5efddfd0852d6dd6ac828f62d00a368 /src/mbgl
parent074dba57a2405653191869fccddf19f304b03cf8 (diff)
downloadqtlocation-mapboxgl-8e1bd18eae73ffbe14aa9297a039e2431d40bd36.tar.gz
[android] execute quickzoom scale change based on the Y axis delta change
Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller. The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.
Diffstat (limited to 'src/mbgl')
0 files changed, 0 insertions, 0 deletions