no message

main
이범준 7 months ago
parent 691edb0c12
commit a25067c7f6

@ -1034,8 +1034,7 @@ pwlib.gui = function (app) {
this.canvasResizeEnd = function (ev) { this.canvasResizeEnd = function (ev) {
this.resizeHandle.style.visibility = ''; this.resizeHandle.style.visibility = '';
app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), MathRound(ev.height / app.image.canvasScale));
MathRound(ev.height / app.image.canvasScale));
if (this.timeout_) { if (this.timeout_) {
clearTimeout(this.timeout_); clearTimeout(this.timeout_);

@ -1540,8 +1540,8 @@ function PaintWeb (win, doc) {
return false; return false;
} }
var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, cropWidth, cropHeight));
cropWidth, cropHeight));
if (cancel) { if (cancel) {
return false; return false;
} }
@ -1554,8 +1554,7 @@ function PaintWeb (win, doc) {
cropHeight = this.config.imageHeightMax; cropHeight = this.config.imageHeightMax;
} }
if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height === cropHeight) {
=== cropHeight) {
return true; return true;
} }

Loading…
Cancel
Save