Dragging and selecting works. Dragging the selection not yet.

This commit is contained in:
Sebastian
2024-11-25 00:53:10 +01:00
parent f04838bffa
commit 9c0aac8618
9 changed files with 76 additions and 53 deletions
+3 -1
View File
@@ -68,10 +68,12 @@ namespace VISEQ::GRAPH::NODES {
}
void update() override{
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){