Closed cini9 closed 1 year ago
This is basically a duplicate of #2622
In the meantime, I've implemented a workaround using a "isDragging" flag to detect whether there is an actual drag event. Is there any plan to manage this internally ?
closed in favour of #2622
Describe the Bug
First off, thanks a bunch for this library. It really takes our diagrams to the next level !
I have been trying to update a node's position in the database once the drag event has ended. To do so, I am using the onNodeDragStop even handler, like so :
The callback is where I wish to send a mutation to the api to update the node position in the database. However, I noticed that onNodeDragStop is firing even when I simply select the node, and don't drag it to a new position. Is this is the correct behaviour ?
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
This behaviour also appears to happen in the examples provided in the documentation. In the proximity connect example :
Expected behavior
As as user, I would expect the onNodeDragStop event to fire only if there has been an actual drag event and the position of the node has changed.
Screenshots or Videos
No response
Platform
Additional context
No response