mapbox-gl-draw
mapbox-gl-draw copied to clipboard
Enable touch event propagation
Touch events are inexplicably prevent from propagating while mouse clicks propagate fine. Fix for #617
Requires testing across some more devices.
Please merge this.
Are there any updates on this PR? Will it be merged or not?
Thanks!
This looks closely related to #869, with the exception that that PR moves this until later instead of preventing default altogether. I think this PR can be closed in favor of that one. cc @arindam1993
Is there anything preventing this PR from being merged + released?
Just for the record: This bug makes using mapbox virtually impossible with Chrome devtools opened in 'touch device mode' and I fear the same is true for all devices supporting both mouse + touch. Placing and moving a point for instance works, but no draw.update
events will be fired on touch interaction. Bummer. :cry:
Hi! I'm sorry for not getting back to you sooner. We've switched to passive event listeners instead of preventDefault
here, and this should be fixed in the next release https://github.com/mapbox/mapbox-gl-draw/pull/1146