Leaflet.PixiOverlay icon indicating copy to clipboard operation
Leaflet.PixiOverlay copied to clipboard

autoPreventDefault=true stops click events on iOS Safari

Open dnasir opened this issue 4 years ago • 0 comments

The autoPreventDefault option allows me to stop the Safari browser from triggering the accessibility zoom when the user uses pinch to zoom on iOS. Unfortunately, it also prevents any click events from being fired.

See the example below on a regular desktop, and then on any browser on any iOS device (since they all run WebKit anyway). You will find that the click event handler gets triggered on non-iOS devices, but not on iOS. However, this phenomenon does not occur on the desktop version of Safari on my Mac.

https://jsfiddle.net/dzul1983/dy6wro9L/2/show

I don't know if this is a bug with the plugin, or with pixi.js, but since I first encountered it while using this plugin, I thought I'd post this here first.

Let me know if you need more information.

dnasir avatar Dec 02 '20 17:12 dnasir