Leaflet 1.7.1 + Ionic React / Capacitor: no double click on generated iOS app
See original GitHub issueHello
I am using Ionic React / Capacitor with Leaflet 1.7.1 to build iOS and Android apps, but the double click is not working on the generated iOS app.
The map does not zoom in and the dblclick
events are not triggered.
Here is the Browser object in iOS: “ie”:false, “ielt9”:false, “edge”:false, “webkit”:true, “android”:false, “android23”:false, “androidStock”:false, “opera”:false, “chrome”:false, “gecko”:false, “safari”:false, “phantom”:false, “opera12”:false, “win”:false, “ie3d”:false, “webkit3d”:true, “gecko3d”:false, “any3d”:true, “mobile”:true, “mobileWebkit”:true, “mobileWebkit3d”:true, “msPointer”:false, “pointer”:true, “touch”:true, “mobileOpera”:false, “mobileGecko”:false, “retina”:true, “passiveEvents”:true, “canvas”:true, “svg”:true, “vml”:false}
and the navigator.userAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
I looked at the code and the function browserFiresNativeDblClick
(in DomEvent.js) returns true, indicating a native double click support.
But it doesn’t work as expected. Do you have any idea?
Just for testing, I locally and temporary changed browserFiresNativeDblClick to always return false and it starts working successfully on the iOS device.
I also precise it is working fine in the generated Android app.
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Ok. then vote for #7027. I hope @IvanSanchez or @morner will find time to review and merge it.
Ok, that means that you really need #7027.