-
-
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
Gridlayer opacity flicker fix #3671
Conversation
|
||
// IE doesn't inherit filter opacity properly, so we're forced to set it on tiles | ||
if (!L.Browser.ielt9 && !this._map._fadeAnimated) { | ||
L.DomUtil.setOpacity(this._container, opacity); | ||
if (L.Browser.ielt9 && !this._map._fadeAnimated) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opacity in <IE9 is never animated, so the second condition is superfluous, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly, wanted to leave a note here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was in the original code, I would change &&
to ||
to make it work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, ||
sounds good.
Pushed that change as well |
Squash into one commit and force-push please. |
Done |
Thanks! |
#3652