Drag selection and snap to grid ok. Deselect not working though...

This commit is contained in:
Sebastian
2024-11-26 01:58:09 +01:00
parent 9c0aac8618
commit 813958002b
9 changed files with 231 additions and 180 deletions
-3
View File
@@ -71,9 +71,6 @@ namespace VISEQ::GRAPH::NODES {
if(hovering() && clicked()) state->pushEvent({getPtr(), APP::Interaction::PICKUP});
if(pickedUp()) state->pushEvent({getPtr(), APP::Interaction::DRAG});
if(picked_up && released()) state->pushEvent({getPtr(), APP::Interaction::PUTDOWN});
if(selected) state->pushEvent({getPtr(), APP::Interaction::SELECTED});
if(state->selection.width > 0) select();
int free_connectors = 0;
for(auto c : connectors){