Skip to content

Commit

Permalink
Zoom out with shift+dblclick. Fixes #1666
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Nov 3, 2015
1 parent 5963105 commit ca521b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ui/handler/dblclick_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DoubleClickZoom.prototype = {
},

_onDblClick: function (e) {
this._map.zoomTo(Math.round(this._map.getZoom()) + 1, {around: e.lngLat});
this._map.zoomTo(Math.round(this._map.getZoom()) +
e.shiftKey ? -1 : 1, {around: e.lngLat});
}
};

0 comments on commit ca521b1

Please sign in to comment.