Skip to content

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.

2 participants