jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.7k stars 728 forks source link

Draggable Cancelation #530

Open bluelightfu opened 2 years ago

bluelightfu commented 2 years ago

Is it possible to cancel draggable status when you drag your node out of the drawflow boundary and your cursor is not in the area of drawflow?

I've noticed that if you drag your node out of the boundary, the node will stuck on it's border. After that, when your cursor is back to the drawflow area, the node will still follow your cursor and don't cancel its draggable status.

jerosoler commented 2 years ago

Applying this correction the cursor would follow its flow correctly.

I think it is a better option.