Dragging and selecting works. Dragging the selection not yet.
This commit is contained in:
+3
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user