Drag selection working again - not much progress
This commit is contained in:
+1
-11
@@ -69,17 +69,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
}
|
||||
|
||||
void update() override{
|
||||
if((held() && !picked_up) || (clicked() && !state->keys_down.shift)) select();
|
||||
if(entered()) state->istate = APP::InteractionState::HOVER_NODE;
|
||||
if(exited()) state->istate = APP::InteractionState::HOVER_CANVAS;
|
||||
if(pickedUp()){
|
||||
drag();
|
||||
state->istate = APP::InteractionState::DRAG_NODE;
|
||||
}
|
||||
if(released() && picked_up){
|
||||
putDown();
|
||||
state->istate = APP::InteractionState::HOVER_CANVAS;
|
||||
}
|
||||
BASE::Draggable::update();
|
||||
|
||||
int free_connectors = 0;
|
||||
for(auto c : connectors){
|
||||
|
||||
Reference in New Issue
Block a user