-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Can't disable map drag (Windows IE11 only) #3666
Comments
also cc @danzel |
Hm. Apparently disabling the map dragging works, but the order IE11 fires the events means it's disabled after starting the drag (in that fiddle's use case). |
I'm curious about the details |
Upon further testing, I'm seeing this issue on both iOS Chrome and Safari as well (using iPhone 6 and simulator). Same fiddle: https://jsfiddle.net/skalb/otwgyutn/5/embedded/result/ |
This looks like a different issue so I opened #3825 instead. |
Apparently this is still reproducible in beta2 (as reported in #4157) - anyone up to |
I did some further testing and found that is works correctly in one (sub)version of 1.0beta2 and not correct in another. There are also fiddles where you can check. In current version from www.leaflet.js it does not work: In version I found in one example fiddle it works correctly in IE: |
@amir-infsoft Does it work in the current |
Unfortunately no. Url: https://playground-leaflet.rhcloud.com/jix/1/edit?html,output |
Damn. :-( |
I see. When I add Can you add this in new version(s)? |
Paging @danzel @yohanboniface - I have no idea how to fix this without breaking #3804/#3839.
@amir-infsoft Exactly. It's not the first time that fixing a very specific bug creates a tiny very specific bug somewhere else. |
Adding Gonna investigate this for a bit. What if we cancelled any existing drags when the draggable gets disabled? |
Ok, so on mouse down if IE feels like it has a touch device, it will generate a We could change |
@danzel Sounds good. |
I'm trying to disable the map drag when a user clicks a layer. It works fine on Mac/Chrome, but on Windows/IE the map drag is not disabled.
It seems like the mousedown event handler on the map object is never actually removed.
See: http://jsfiddle.net/skalb/otwgyutn/3/
Any ideas?
Edit: using leaflet master
The text was updated successfully, but these errors were encountered: