Leaflet: Any plans to add two-finger touch panning informational overlay?

Created on 24 May 2018  Â·  2Comments  Â·  Source: Leaflet/Leaflet

On our mapping services we have two-finger touch panning enabled on mobile devices. While fairly standard (popularized by Google Maps I think) we show an informational overlay when the user supposedly tries to pan using one finger (which we use to scroll the web page instead). Demo here.

This was easy to implement in iOS using standard touch event handlers. On Android it was much more problematic since the browser seems to receive more or less raw touch sensor data (in particular the DOM event touches array always seem to contain one element, and firing two events instead of a one event with a touches array of length 2 when panning using two fingers).

Any plans to add support for such an overlay to Leaflet (and in particular make sure it works well on Android)?

Most helpful comment

No, there are no plans, because there's a plugin for that already.

All 2 comments

No, there are no plans, because there's a plugin for that already.

Nice, I use that plugin now, seems to work as advertised.

Was this page helpful?
0 / 5 - 0 ratings