$ npm install window-scroll
Polyfill for window.scrollX
and window.scrollY
.
The implementation comes from jQuery 1.x (supports IE6+). (1)
var scroll = require("window-scroll");
console.log("window.scrollX:", scroll.getScrollX());
console.log("window.scrollY:", scroll.getScrollY());
npm install window-scroll
© 2010 - cnpmjs.org x YWFE | Home | YWFE