anvaka / panzoom

Universal pan and zoom library (DOM, SVG, Custom)
https://anvaka.github.io/panzoom/demo/attach-via-script.html
MIT License
1.79k stars 287 forks source link

Bind event listeners to PanZoom container instead of document root #328

Open adelinn opened 4 months ago

adelinn commented 4 months ago

Made all event listeners be bound to the panzoom container instead of the document. The reason for the change is to prevent some events from propagating upper the DOM tree which results in buggy behavior in specific scenarios.