@syncfusion/ej2-image-editor 29.1.37 → 29.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +12 -8
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +12 -8
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/image-editor/action/selection.js +12 -8
|
@@ -10424,18 +10424,22 @@ class Selection {
|
|
|
10424
10424
|
let endY = isStart ? actPoint.endY : actPoint.startY;
|
|
10425
10425
|
const wrapperWidth = parent.upperCanvas.width;
|
|
10426
10426
|
const wrapperHeight = parent.upperCanvas.height;
|
|
10427
|
+
const minX = destLeft < 0 ? 0 : destLeft;
|
|
10428
|
+
const minY = destTop < 0 ? 0 : destTop;
|
|
10429
|
+
const maxX = destLeft + destWidth > wrapperWidth ? wrapperWidth : destLeft + destWidth;
|
|
10430
|
+
const maxY = destTop + destHeight > wrapperHeight ? wrapperHeight : destTop + destHeight;
|
|
10427
10431
|
if (Browser.isDevice) {
|
|
10428
|
-
if (startX <
|
|
10429
|
-
startX =
|
|
10432
|
+
if (startX < minX) {
|
|
10433
|
+
startX = minX;
|
|
10430
10434
|
}
|
|
10431
|
-
if (startY <
|
|
10432
|
-
startY =
|
|
10435
|
+
if (startY < minY) {
|
|
10436
|
+
startY = minY;
|
|
10433
10437
|
}
|
|
10434
|
-
if (endX >
|
|
10435
|
-
endX =
|
|
10438
|
+
if (endX > maxX) {
|
|
10439
|
+
endX = maxX;
|
|
10436
10440
|
}
|
|
10437
|
-
if (endY >
|
|
10438
|
-
endY =
|
|
10441
|
+
if (endY > maxY) {
|
|
10442
|
+
endY = maxY;
|
|
10439
10443
|
}
|
|
10440
10444
|
}
|
|
10441
10445
|
else {
|