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