1.0.1 • Published 8 months ago

html5-drag-to-scroll-pmb v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

html5-drag-to-scroll-pmb

Drag the content to scroll your overflow-ing element.

API

This module exports one function:

dragToScroll(opt)

opt is an options object. Currently, the only supported key is:

  • elem: The HTML DOM element on which to install.

  • When you pass a DOM element instead of opt, it is used as the elem opt.

Side effects

  • When the module is loaded and cannot find any module loading system, it assumes you've run it inside a plain simple website (like the live demo). In that case, it exposes itself on a window global named dragToScroll and also installs itself onto all elements currently available that have the CSS class drag-to-scroll.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

1.0.1

8 months ago

1.0.0

8 months ago