Skip to content

Commit

Permalink
Fix map pan when touchZoom is disabled (#5952)
Browse files Browse the repository at this point in the history
* fix map pan when touchZoom is disabled

* add pinch-zoom for non-ie

* add fallback for FF
  • Loading branch information
cherniavskii authored and perliedman committed Dec 15, 2017
1 parent e9ffabd commit 2ce37c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
}
.leaflet-container.leaflet-touch-drag {
-ms-touch-action: pinch-zoom;
}
/* Fallback for FF which doesn't support pinch-zoom */
touch-action: none;
touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
-ms-touch-action: none;
touch-action: none;
Expand Down

0 comments on commit 2ce37c5

Please sign in to comment.