@acorex/components 20.2.44 → 20.2.46
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.
|
@@ -255,7 +255,6 @@ class AXImageEditorCropperWindowComponent {
|
|
|
255
255
|
this.mouseDownEvent = this.renderer.listen(host, 'pointerdown', this.panDown.bind(this));
|
|
256
256
|
this.mouseMoveEvent2 = this.renderer.listen(host, 'pointermove', this.panMove.bind(this));
|
|
257
257
|
this.mouseUpEvent2 = this.renderer.listen(host, 'pointerup', this.panUp.bind(this));
|
|
258
|
-
this.mouseLeaveEvent = this.renderer.listen(host, 'pointerleave', this.panUp.bind(this));
|
|
259
258
|
});
|
|
260
259
|
});
|
|
261
260
|
this.#positionChange = effect(() => {
|
|
@@ -286,6 +285,8 @@ class AXImageEditorCropperWindowComponent {
|
|
|
286
285
|
}
|
|
287
286
|
#positionChange;
|
|
288
287
|
panMove(e) {
|
|
288
|
+
if (!this.isMousePressed())
|
|
289
|
+
return;
|
|
289
290
|
if (this.selectedHandle())
|
|
290
291
|
return;
|
|
291
292
|
if (!this.panState())
|
|
@@ -732,7 +733,7 @@ class AXImageEditorContainerComponent extends classes((MXInputBaseValueComponent
|
|
|
732
733
|
this.aspectRatio = input([], ...(ngDevMode ? [{ debugName: "aspectRatio" }] : []));
|
|
733
734
|
this.#eff = effect(() => {
|
|
734
735
|
void this.service.imageBlob();
|
|
735
|
-
if (this.service.
|
|
736
|
+
if (this.service.imageBlob().length) {
|
|
736
737
|
this.commitValue(this.service.imageBlob(), true);
|
|
737
738
|
}
|
|
738
739
|
else {
|