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

Bugfix for ScrollX / ScrollY in IE11 #3

Closed
wants to merge 3 commits into from

Conversation

DonGissel
Copy link

This PR replaces scrollX and scrollY with pageXOffset and pageYOffset (which is basically the same) to get scroll-compatibility in IE11. It does rename the properties in the local storage as well, but I don't know if this would be considered a breaking change for anyone?

See https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes for information about the cross-browser compatibility. pageXOffset is a safer bet. :)

@DonGissel
Copy link
Author

Now the naming in local storage is unchanged from before, so there's full backwards compatibility. Woo!

@trevorr
Copy link
Owner

trevorr commented Sep 16, 2019

It looks like we made the same, non-disruptive change simultaneously. 😄 I merged mine with your comment above, so I'm closing this PR. Thanks for reporting the issue!

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.

None yet

2 participants