Skip to content

Commit

Permalink
Increase significantRotateThreshold
Browse files Browse the repository at this point in the history
From user testing and feedback I have found that the old threshold value of 4 is too low, causing map to rotate when users are trying to simply pinch zoom the map.

Tested with higher values than 10, but found that 10 is a good value.
  • Loading branch information
dagjomar authored and jfirebaugh committed Jul 12, 2017
1 parent d6b4d98 commit eaed8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/handler/touch_zoom_rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const inertiaLinearity = 0.15,
inertiaDeceleration = 12, // scale / s^2
inertiaMaxSpeed = 2.5, // scale / s
significantScaleThreshold = 0.15,
significantRotateThreshold = 4;
significantRotateThreshold = 10;

/**
* The `TouchZoomRotateHandler` allows the user to zoom and rotate the map by
Expand Down

0 comments on commit eaed8fe

Please sign in to comment.