From a25067c7f6480cd9ee62e37aa52196ce5440c091 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 3 May 2024 09:19:29 +0900 Subject: [PATCH] no message --- src/main/webapp/resources/libs/fims/paintweb/guiScript.js | 3 +-- src/main/webapp/resources/libs/fims/paintweb/paintweb.js | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js index e11ea504..a50574ca 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js +++ b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js @@ -1034,8 +1034,7 @@ pwlib.gui = function (app) { this.canvasResizeEnd = function (ev) { this.resizeHandle.style.visibility = ''; - app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), - MathRound(ev.height / app.image.canvasScale)); + app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), MathRound(ev.height / app.image.canvasScale)); if (this.timeout_) { clearTimeout(this.timeout_); diff --git a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js index cd62a7e3..cd0e2816 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js +++ b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js @@ -1540,8 +1540,8 @@ function PaintWeb (win, doc) { return false; } - var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, - cropWidth, cropHeight)); + var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, cropWidth, cropHeight)); + if (cancel) { return false; } @@ -1554,8 +1554,7 @@ function PaintWeb (win, doc) { cropHeight = this.config.imageHeightMax; } - if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height - === cropHeight) { + if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height === cropHeight) { return true; }