Skip to content

Commit

Permalink
remove unnecessary zoom clamp. easeTo handles this just fine as it is.
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Nov 27, 2019
1 parent fb015e8 commit 31f8918
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ui/handler/touch_zoom_rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ class TouchZoomRotateHandler {
const duration = Math.abs(speed / (inertiaDeceleration * inertiaLinearity)) * 1000;
let targetScale = lastScale + speed * duration / 2000;

if (targetScale < 0) {
targetScale = 0;
}

map.easeTo({
zoom: targetScale,
duration,
Expand Down

0 comments on commit 31f8918

Please sign in to comment.