Use window.pageYOffset instead of window.scrollY
Use window.pageYOffset instead of window.scrollY
Merge pull request #1299 from thibaultlavoisey/master

For cross-browser compatibility, use window.pageYOffset instead of window.scrollY