0.0.2 • Published 10 years ago

ab-scroll-util v0.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

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