Leaflet.Path.Transform icon indicating copy to clipboard operation
Leaflet.Path.Transform copied to clipboard

Working examples for mobile?

Open Damorck opened this issue 7 years ago • 7 comments

Hi there. Thanks for this good project. I have trouble making it work on mobile devices. Are there some working examples if it's possible at all?

Damorck avatar Apr 04 '17 06:04 Damorck

It is supposed to work on mobile, as long as the handlers are accessible. I don't have a device to check. What doesn't work? Also, do you have an Andriod or iOS device?

w8r avatar Apr 04 '17 09:04 w8r

Hi. Thanks for reply. It´s Android, but planned to work for iOS as well. The provided example in the repository has the same lack - not working on mobile. (Tested with Chrome Inspector for responsive devices and more) Can this has something to with with touch-action in leaflet.css?

Damorck avatar Apr 04 '17 20:04 Damorck

What's the differences between the 2 js-files in src folder? I haven't tried the "...-src.js"

Damorck avatar Apr 14 '17 08:04 Damorck

this was caused by the leaflet itself as far as I can remember. There was a PR on leaflet-path-drag explaining the problem with touch devices

w8r avatar Apr 14 '17 09:04 w8r

-src.js file is not compressed

w8r avatar Apr 14 '17 09:04 w8r

Thanks for pointing me in the right direction :-)

Damorck avatar Apr 15 '17 08:04 Damorck

Works fine on Firefox browser for mobile. Chrome seems to be the issue with its pointer events and not Android itself.

Damorck avatar May 06 '17 21:05 Damorck