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

Warning message does not disappear under shadow DOM #53

Open IvoAtanasov opened 4 years ago

IvoAtanasov commented 4 years ago

The warning message "Use ctrl + scroll to zoom the map" stays after the duration period on shadow DOM. That is the case because document.getElementsByClassName is used, which will not find elements in the shadow DOM. There is a pull request that may resolved the problem : https://github.com/elmarquis/Leaflet.GestureHandling/pull/38

alizarion commented 1 year ago

up :) Same use case and same issue