elmarquis / Leaflet.GestureHandling

Brings the basic functionality of Google Maps Gesture Handling into Leaflet. Prevents users from getting trapped on the map when scrolling a long page.
MIT License
275 stars 60 forks source link

Cannot read property 'duration' of undefined #76

Open edwh opened 3 years ago

edwh commented 3 years ago

Hi there - thanks for the code.

I'm getting this occasionally:

image

I'm not specifying any options, just gestureHandling: true. I'm not sure whether this is a bug if no options are provided, and/or whether it is due to the map being destroyed under the feet of the code (which can happen during page transition).