ab-scroll-util
Simple scroll utilities in vanilla JS
Last updated 5 years ago by antoniobrandao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ab-scroll-util 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |