drag_start and drag_origin not working...
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user