From ea5609dd0b72a8958f2bb47b94ebc76755c67465 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 26 Jan 2025 02:35:00 +0100 Subject: [PATCH] more comments in callback() --- src/callback.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/callback.c b/src/callback.c index 83ba3c52..aa3a9ec3 100644 --- a/src/callback.c +++ b/src/callback.c @@ -4193,9 +4193,13 @@ int rstate; /* (reduced state, without ShiftMask) */ * unselect everything... we do it here */ if(xctx->intuitive_interface && !already_selected && no_shift_no_ctrl ) unselect_all(1); + + /* select the object under the mouse */ if(!already_selected) select_object(xctx->mousex, xctx->mousey, SELECTED, 0, &sel); rebuild_selected_array(); + + /* if clicking on some object endpoints or vertices set shape_point_selected */ if(xctx->lastsel == 1 && xctx->sel_array[0].type==POLYGON) if(edit_polygon_point(state)) break; /* sets xctx->shape_point_selected */ @@ -4224,6 +4228,7 @@ int rstate; /* (reduced state, without ShiftMask) */ xctx->connect_by_kissing = 2; /* 2 will be used to reset var to 0 at end of move */ move_objects(START,0,0,0); } + /* dragging away an object with Shift pressed is a copy (duplicate object) */ else if(state == ShiftMask) copy_objects(START); else move_objects(START,0,0,0); }