buzinas / simple-scrollbar

Very simple and lightweight vanilla javascript library for creating a custom scrollbar cross-browser.
MIT License
575 stars 159 forks source link

add unbinding capabilities - Issue #20 #44

Closed taltmann42 closed 4 years ago

taltmann42 commented 6 years ago

Two new methods were added in order to remove SimpleScrollbar

SimpleScrollbar.unbind(el) destroys one specific instance including all event listeners and wrapping elements.

SimpleScrollbar.unbindAll() destroys all instances using the unbind method

A demo page can be found here: https://codepen.io/taltmann42/full/qKRLzv/

nuovecode commented 5 years ago

A big thumbs up for this feature. Thanks guy

buzinas commented 4 years ago

Thank you so much for your contribution :)