w8r / Leaflet.Path.Transform

Drag/rotate/resize handler for leaflet vector features.
http://w8r.github.io/Leaflet.Path.Transform
170 stars 58 forks source link

Does not work on mobile devices #114

Open GogusMaximus opened 7 months ago

GogusMaximus commented 7 months ago

Thank you to the creators of this package, this is an incredible feature. It would be absolutely perfect if I could use this on mobile devices. I want the ability to drag and rotate a polygon on mobile. Has anyone been able to achieve this?

The other package, Leaflet path drag, works on mobile but unfortunately not this package. I don't think it is something I am doing wrong, since it looks like the demo site also doesn't work on mobile: https://milevski.co/Leaflet.Path.Transform/example/

Tested on chrome / firefox dev tools and on my iPhone.

w8r commented 7 months ago

Ok I will fix that

Kind regards, Alex

On Sat, 2 Mar 2024 at 00:16, GogusMaximus @.***> wrote:

Thank you to the creators of this package, this is an incredible feature. It would be absolutely perfect if I could use this on mobile devices. I want the ability to drag and rotate a polygon on mobile. Has anyone been able to achieve this?

The other package, Leaflet path drag https://github.com/w8r/Leaflet.Path.Drag, works on mobile but unfortunately not this package. I don't think it is something I am doing wrong, since it looks like the demo site also doesn't work on mobile: https://milevski.co/Leaflet.Path.Transform/example/

Tested on chrome / firefox dev tools and on my iPhone.

— Reply to this email directly, view it on GitHub https://github.com/w8r/Leaflet.Path.Transform/issues/114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGSBAPMFM67YPE4VANXX3YWED27AVCNFSM6AAAAABECRQUNGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DIMZTHE3DONA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

GogusMaximus commented 7 months ago

@w8r you are a legend. Thank you, and let me know if I can help in any way. Do you have any ideas on why this is caused?

w8r commented 7 months ago

mostly stuff like this: https://github.com/w8r/Leaflet.Path.Transform/blob/master/src/Path.Transform.js#L547

GogusMaximus commented 7 months ago

@w8r I've forked this repo and played around with those event handlers using "touchstart" but I'm not having any luck fixing this issue. Looks like the leaflet-path-drag might have more logic for mobile/touch devices?

utassydv commented 1 month ago

I have the same issue, do you guys have maybe any update on this one? @GogusMaximus @w8r