0.0.2 • Published 10 years ago
ab-scroll-util v0.0.2
ab-scroll-util
Simple Scroll Utilities.
Disable / Enable scroll, and get scrollbar width in pixels.
- disableScroll
- enableScroll
- getScrollbarWidth
Install
With npm do:
$ npm install ab-scroll-util --save-dev
Usage
var scrollutil = require('ab-scroll-util');
scrollutil.disableScroll();
scrollutil.enableScroll();
var scrollbar_width = scrollutil.getScrollbarWidth();
License
MIT