alyssaxuu / flowy

The minimal javascript library to create flowcharts ✨
MIT License
11.47k stars 998 forks source link

OnSnap not working properly #56

Closed pilootchoum closed 4 years ago

pilootchoum commented 4 years ago

Hello,

When trying to prevent the snap from one block using the onsnap function and returning false, it does not work as expected.

I tried also on the demo page just returning false, and once the bloc is released, it is not attached to the parent one (good), but the dragged block itself stay on the canvas kind of lost.

Attached a screenshot. image

Then as soon as you try to drag another block, the previous one (the lost one) move to the top of the window.

image

There is no javascript error, but you can see in the dom that the lost/dragged block is added in the dom at the root at the dom, whereas it should simply not be there.

image

alyssaxuu commented 4 years ago

Just fixed it.