Skip to content

Commit

Permalink
Ignore pan keyboard event if the map is animating. Fixes #1710
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Jun 24, 2013
1 parent 01b76b7 commit 130d6d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/map/handler/Map.Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ L.Map.Keyboard = L.Handler.extend({
map = this._map;

if (key in this._panKeys) {

if (map._panAnim && map._panAnim._inProgress) { return; }

map.panBy(this._panKeys[key]);

if (map.options.maxBounds) {
Expand Down

0 comments on commit 130d6d0

Please sign in to comment.