File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -1167,18 +1167,7 @@ <h3>Import Options</h3>
1167
1167
const mouseX = e . clientX - rect . left ;
1168
1168
const mouseY = e . clientY - rect . top ;
1169
1169
1170
- // Circle creation or circle dragging
1171
- if ( dragMode ) {
1172
- for ( let i = 0 ; i < circles . length ; i ++ ) {
1173
- const c = circles [ i ] ;
1174
- const dx = mouseX - c . x , dy = mouseY - c . y ;
1175
- if ( Math . hypot ( dx , dy ) < c . radius + 5 ) {
1176
- draggingCircleIndex = i ;
1177
- return ;
1178
- }
1179
- }
1180
- // no return here — fall through to other modes
1181
- }
1170
+
1182
1171
1183
1172
// 2) Only start a new circle if drawMode==='circle' AND dragMode is OFF
1184
1173
if ( drawMode === 'circle' && ! anyEditModeOn ( ) ) {
@@ -1365,6 +1354,19 @@ <h3>Import Options</h3>
1365
1354
}
1366
1355
}
1367
1356
1357
+ // Circle creation or circle dragging
1358
+ if ( dragMode ) {
1359
+ for ( let i = 0 ; i < circles . length ; i ++ ) {
1360
+ const c = circles [ i ] ;
1361
+ const dx = mouseX - c . x , dy = mouseY - c . y ;
1362
+ if ( Math . hypot ( dx , dy ) < c . radius + 5 ) {
1363
+ draggingCircleIndex = i ;
1364
+ return ;
1365
+ }
1366
+ }
1367
+ // no return here — fall through to other modes
1368
+ }
1369
+
1368
1370
// Otherwise, if in blob or line mode, start freehand
1369
1371
if ( ( drawMode === 'blob' || drawMode === 'line' ) && ! anyEditModeOn ( ) ) {
1370
1372
isDrawing = true ;
You can’t perform that action at this time.
0 commit comments