Ensure position of last clicked mouse is stored on every click
This commit is contained in:
parent
f541e3afc3
commit
680f1ec380
@ -93,10 +93,10 @@ i32 run_main_loop(void) {
|
||||
if (comp.event.button.windowID == main_window->id) {
|
||||
if (comp.node_hovered != -1) {
|
||||
comp.move_node = true;
|
||||
}
|
||||
|
||||
comp.last_clicked_mouse_x = comp.event.button.x;
|
||||
comp.last_clicked_mouse_y = comp.event.button.y;
|
||||
}
|
||||
|
||||
break;
|
||||
} else if (comp.event.button.windowID == toolbox->id) {
|
||||
|
Loading…
Reference in New Issue
Block a user