Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 494 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 494 Bytes

isolated-scroll

Prevent scroll events from bubbling up to parent elements — View demo.

$ 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 tests.

License

MIT