Skip to content
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

Merged
merged 1 commit into from
Jul 24, 2015
Merged

Gridlayer opacity flicker fix #3671

merged 1 commit into from
Jul 24, 2015

Conversation

w8r
Copy link
Contributor

@w8r w8r commented Jul 24, 2015

#3652

  • Layer opacity applied on container
  • Tile fade animation in 0...1 values
  • IE<=9:
    • opacity set on tiles individually, no animation, as before


// 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) {
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, || sounds good.

@w8r
Copy link
Contributor Author

w8r commented Jul 24, 2015

Pushed that change as well

@mourner
Copy link
Member

mourner commented Jul 24, 2015

Squash into one commit and force-push please.

@w8r
Copy link
Contributor Author

w8r commented Jul 24, 2015

Done

mourner added a commit that referenced this pull request Jul 24, 2015
@mourner mourner merged commit 0b88983 into Leaflet:master Jul 24, 2015
@mourner
Copy link
Member

mourner commented Jul 24, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants