Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
2.07k stars 254 forks source link

Node remains selected after click and drag #8

Closed neverhood311 closed 4 years ago

neverhood311 commented 4 years ago

Disclaimer: Not sure if this is a bug or a feature, but it's not consistent with other node editors I've used.

Create a node editor and put two nodes in it. Click and drag one of them to move it. Now click and drag the other one. The first one remained selected so they both move when you try to move the second one.

I expected to be able to move each node individually without having to deselect each after moving them.

Nelarius commented 4 years ago

Moving both selected nodes at once is intentional. But being able to select another node after one already is selected is not intentional. I actually just created an issue for that: #10 .

Nelarius commented 4 years ago

Fixed in def7754. Now you don't need to deselect nodes when clicking on a new one.