isolated-scroll
v0.1.0
Published
Prevent scoll events from bubbling up to parent elements
Downloads
26,855
Readme
isolated-scroll
Prevent scroll events from bubbling up to parent elements.
$ npm install --save isolated-scroll
Usage
const isolatedScroll = require('isolated-scroll');
// Isolate scrolling of selected element:
const unbindHandlers = isolatedScroll(element);
// Remove isolated scroll behaviour:
unbindHandlers();
Todo
- Add demo.
- Add tests.