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

Angular DnD SDK .pause() method is delayed before taking effect #306

Open maalej opened 1 year ago

maalej commented 1 year ago

Hello & thank you for this library. I am trying to include this library with Angular Drag-drop CDK It's working like a charm as you can see here: stackblitz

However, as you can see, when I start dragging the 1st element, the 2nd starts also moving for some pixels before the panzoomCanvas.pause() takes effect.

I tried to pause the panzoomCanvas on beforeMouseDown when the user is clicking on the 1st element but in vain.

Am I missing something? Thanks