-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TouchExtend brakes map dragging #935
Comments
Fix: L.Draw.Polyline.prototype._onTouch = L.Util.falseFn; Note: |
This was referenced Jan 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to reproduce
Google Chrome 74.0.3729.157 (Official Build) (32-bit)
Windows 10 (32-bit)
What behaviour I'm expecting and which behaviour I'm seeing
When in polyline/polygon drawing mode it's possible to drag the map, but besides of dragging every click makes new point, which is undesirable.
It's possible to fix this by disabling touch handler (
map.touchExtend.disable()
).After this:
Unfortunately with disabled handler we lost 2 abilities
I suppose we need to completely revise
TouchEvents.js
, as there are too many bugs (see Issues)Minimal example reproducing the issue
https://leaflet.github.io/Leaflet.draw/docs/examples/full.html
The text was updated successfully, but these errors were encountered: