Hi! I’d like to detect selected nodes on MOUSEDOWN, but it seems like the selecting happens after the callback, doesn’t it?
Here’s what happens:
- Nothing is selected;
- I click on a node selecting it and expect the callback to recognize it, but it doesn’t;
- I click away, nothing is selected, but the callback now prints the previously selected node.
What’s the correct way to achieve it? Tried def mouseDown_ in the select plugin, but it then doesn’t select individual nodes at all.