File tree 1 file changed +7
-5
lines changed
src/qml/modules/Shotcut/Controls
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2014-2022 Meltytech, LLC
2
+ * Copyright (c) 2014-2025 Meltytech, LLC
3
3
*
4
4
* This program is free software: you can redistribute it and/or modify
5
5
* it under the terms of the GNU General Public License as published by
@@ -300,7 +300,7 @@ Item {
300
300
newX = Math .min (Math .max (rectangle .x , 0 ), widthScale * profile .width - rectangle .width );
301
301
newY = Math .min (Math .max (rectangle .y , 0 ), heightScale * profile .height - rectangle .height );
302
302
}
303
- if (mouse .modifiers & Qt .ShiftModifier ) {
303
+ if (mouse .modifiers & Qt .ControlModifier ) {
304
304
var deltaX = Math .abs (startX - newX);
305
305
var deltaY = Math .abs (startY - newY);
306
306
if (deltaX < deltaY) {
@@ -311,9 +311,11 @@ Item {
311
311
newY = startY;
312
312
}
313
313
}
314
- rectangle .x = newX;
315
- rectangle .y = newY;
316
- rectChanged (rectangle);
314
+ if (newX && newY) {
315
+ rectangle .x = newX;
316
+ rectangle .y = newY;
317
+ rectChanged (rectangle);
318
+ }
317
319
}
318
320
onReleased: {
319
321
rectChanged (rectangle);
You can’t perform that action at this time.
0 commit comments