Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preventDefault() to avoid page scroll while panning
Enabling dragging of a map changes the touch-action CSS property value to prevent the page from scrolling while you are dragging. However, when dragging is enabled dynamically inside a touch event this CSS change doesn't affect the current gesture. Add e.preventDefault() in the event handler to prevent the page from scrolling while you're performing a two-finger drag action on the map.
- Loading branch information