dragscrolles
v1.0.4
Published
JavaScript Libary for scrolling via holding mouse button ("drag and drop" or "click and hold"). It has no dependencies and is written in vanilla JavaScript.
Downloads
37
Maintainers
Readme
dragscrolles
JavaScript Libary for scrolling via holding mouse button ("drag and drop" or "click and hold"). It has no dependencies and is written in vanilla JavaScript.
Usage
npm:
$ npm install dragscrolles
import Dragscrolles from 'dragscrolles';
const element = document.querySelector('[data-dragscrolles]');
new Dragscrolles(element);
Methods
Enable if disabled
dragscrolles.enable();
Disable
dragscrolles.disable();