-
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
cannot drag while in drawing mode #788
Comments
I've tried 0.4.3, it's working: |
It seems to me like it's doing a I can start to take a shot at this today, as we're bumping up against this bug in our tests. |
I don't have a PR, but I'll give an update on what I've found. I've got it working in iOS, but I've completely broken it in Android. Given what Apple wrote here, it seems like iOS should "just work" with mouse events, and that seems to hold true when I change
But that completely breaks drawing on my Android device. My current guess is that Android doesn't do the same thing with mouse events that iOS does (my plan was to test this in a debugger but I haven't yet), and instead only responds to touch events (thus requiring something like what I said in my previous comment). The other possibility is there's a bug in the TouchExtend handler in Leaflet.draw, or a bug in the Tap handler in Leaflet. |
I just wanted to add my vote to this issue being important. @mylen thanks for mentioning that 0.4.3 works. I must have missed that one and went back to 0.3.0, but only using the polyline routine from that version. I.e., I just import the polyline.draw.js from 0.3.0 directly into my app. This doesn't seem to be an issue for markers (at least I don't think so - I'm using in combo with leaflet.snap, and I may be cross-contaminating issues). While I'm not going to do a PR (my understanding of events is limited), I hope that this can be resolved sometime. If I eventually get funding for my work, hopefully I can contribute to this, as leaflet draw is very nice. |
Any news about this fix? Thanks!!! |
is there any solution for leaflet 1+ version |
@meteerogl I resigned using leaflet and drew back to openLayers |
Solution: (function() {
|
|
Even simpler fix: #935 (comment) |
How to reproduce
What behaviour I'm expecting and which behaviour I'm seeing
I expect the map to pan without drawing points everytime I click somewhere to drag the map
What I see is a new point drawn everytime I click to move the map
Minimal example reproducing the issue
click on polyline draw icon
click and drag the map
this example is as simple as possible
this example does not rely on any third party code
Using jsfiddle
The text was updated successfully, but these errors were encountered: