From 34e64f6f6ac2ffe65844665d9537874f7e4b6fa0 Mon Sep 17 00:00:00 2001 From: leon Date: Fri, 15 Jul 2022 15:12:16 +0800 Subject: [PATCH] Roo/dialog/UploadCropbox.js --- Roo/dialog/UploadCropbox.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Roo/dialog/UploadCropbox.js b/Roo/dialog/UploadCropbox.js index bb81864cdc..b3bc9fd617 100644 --- a/Roo/dialog/UploadCropbox.js +++ b/Roo/dialog/UploadCropbox.js @@ -561,6 +561,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, { this.startScale = this.scale; this.scale = (e.getWheelDelta() > 0) ? (this.scale + 1) : (this.scale - 1); + + console.log("START SCALE: " + this.startScale); + console.log("TEST SCALE: " + this.scale); if(!this.zoomable()){ this.scale = this.startScale; @@ -584,7 +587,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, { var width = Math.ceil(this.imageEl.OriginWidth * this.getScaleLevel() / minScale); var height = Math.ceil(this.imageEl.OriginHeight * this.getScaleLevel() / minScale); - + console.log("WIDTH: " + width); + console.log("HEIGHT: " + height); + var maxWidth = this.imageEl.OriginWidth; var maxHeight = this.imageEl.OriginHeight; -- 2.39.2