fix: adjust rect & circle handle logic

This commit is contained in:
Beriff
2026-03-12 21:43:03 +07:00
parent 7bc94d3a96
commit 09b84a2aa8
3 changed files with 106 additions and 41 deletions

View File

@@ -281,7 +281,7 @@ void vektor_appstate_canvas_drag_update(GtkGestureDrag* gesture, gdouble x,
// drag handle if selected
if(state->selectedShape != NULL && state->heldHandleIndex != -1) {
state->selectedShape->handles[state->heldHandleIndex] = position;
vektor_shape_handles_updated(state->selectedShape);
vektor_shape_handles_updated(state->selectedShape, &state->heldHandleIndex);
}
}