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

Dragging path is not working in Chrome 55 with latest version of core Leaflet (1.0.3)

Open peppierre opened this issue 8 years ago • 4 comments

How to reproduce

Leaflet version I'm using: 1.0.3 Browser (with version) I'm using: Chrome55 OS/Platform (with version) I'm using: Android Leaflet.Path.Transform version: 1.0.2 Leaflet.Path.Drag version: 1.0.6

What behaviour I'm expecting and which behaviour I'm seeing

Note that both Transform and Drag plugin (in this order) is referred. Prior to Chrome 55 and using core Leaflet v1.0.2, plugin's _onDragStart() handler is called when a path is started to be dragged, as it is expected. In Chrome55, dragging paths doesn't work due to Chrome's newly introduced pointer events, I guess. Unfortunately, updating to v1.0.3 of core did not fix this behavior in Chrome 55, dragging of path still doesn't work because event handler above is simply not called anymore.

peppierre avatar Feb 01 '17 15:02 peppierre

If this needs any changes upstream, please leave comments at https://github.com/Leaflet/Leaflet/issues/5298

IvanSanchez avatar Feb 01 '17 15:02 IvanSanchez

@peppierre, it seems to be Android-specific? Cause I cannot reproduce it.

w8r avatar Feb 02 '17 10:02 w8r

Yeah, I can reproduce it on Android. Seems that using a mouse pointer will make the browser fire both mousedown and pointerdown events, but using a touchscreen will fire only pointerdowns, no touchdowns.

IvanSanchez avatar Feb 02 '17 10:02 IvanSanchez

Same issue here. So this is possible to fix? And is it working on Android with Leaflet 0.7?

Damorck avatar Apr 16 '17 09:04 Damorck