-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Buttons keep the "leaflet-active" class after mouse up (IE11) #2103
Comments
Thanks for these IE11 reports. |
Thanks Dave, much appreciated. Thanks, |
Just tried it in IE11 Desktop, same behaviour, the class stays on the element. The #2102 fix doesn't change anything. I believe there is a deeper issue with touch events |
The second fix in #2102 doesn't fix this bug unfortunately, the outline still stays. |
Sent a PR #2111 that fixes this. Looks like there was some leftover code from when you tidied up draggable @mourner :) Please give it a test @fnicollet |
Remove leftover code from the draggable/tap cleanup. Fixes #2103
@danzel yep, you're totally right! Thanks a lot for figuring this out :) |
@danzel just tried it, works :) |
But the leaflet-active class is never set, even in Chrome. Is it really useful to keep leaflet-active?
Because there is already a focus style with each browser (orange outline in Chrome, dotted outline in IE) |
Hmm, it should be set here in theory... https://github.com/Leaflet/Leaflet/blob/master/src/map/handler/Map.Tap.js#L39-L41 |
Maybe I'm doing something wrong, but in leaflet-src.js, if i set it to:
No alert is shown, Chrome & IE. Also, when I hover the Zoom In button in IE, there is a weird padding on the "+" sign |
Tap is only used on android and iOS. |
* 'master' of https://github.com/Leaflet/Leaflet: Fixing long line Adding bounceAtZoomLimits option The drag click avoid hack is needed for touch zooms on ie10 also, when releasing your fingers after a touch zoom click events are generated. Fixes #2094 Remove leftover code from the draggable/tap cleanup. Fixes #2103 Changed main module file to use un-minified version. adding alt tag to marker icons Fixing line too long error Do not scale above minzoom and maxzoom in touch zoom action
Hi,
A little something that might have to do with pointer event handing for IE11. Try any map with a zoom component in IE11 like http://leafletjs.com/. Click the zoom buttons, they will keep the "leaflet-active" class, even after you pushed them.
This class should be removed when up.
This might have to do with this issue #2102 because the "_onUp" function is never called.
In Pointer.js, I believe there is an issue. in the function addPointerListenerEnd:
this._pointers is undefined so no touch id is sent to the event
It might lead to bigger issues, although i didn't experience any other bad effect
Fabien
The text was updated successfully, but these errors were encountered: