drag_start and drag_origin not working...

This commit is contained in:
Sebastian
2024-10-10 09:54:54 +02:00
parent 190ebe86ff
commit 7b144ed3df
2 changed files with 50 additions and 14 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ int main(){
}
if(mouse_toggled) drag_origin = n.position;
if(mouse_pressed && n.clicked){
n.position = mouse_pos - (drag_start - drag_origin);
n.position = mouse_pos; // - (drag_start - drag_origin);
}
if(!mouse_pressed) n.clicked = false;
n.update();