Closed DonGissel closed 5 years ago
Now the naming in local storage is unchanged from before, so there's full backwards compatibility. Woo!
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!
This PR replaces
scrollX
andscrollY
withpageXOffset
andpageYOffset
(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. :)