dy / pan-zoom

Pan / zoom for any element
MIT License
88 stars 15 forks source link

Cleanup events #12

Closed firasdib closed 6 years ago

firasdib commented 6 years ago

How does one remove all the event listeners from the target and clean things up?

dy commented 6 years ago

Good point. Fixed in 3.3.0 as

let off = panzoom(target)
off()