Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Fri, 15 Jul 2022 07:12:16 +0000 (15:12 +0800)
committerleon <leon@roojs.com>
Fri, 15 Jul 2022 07:12:16 +0000 (15:12 +0800)
Roo/dialog/UploadCropbox.js

index bb81864..b3bc9fd 100644 (file)
@@ -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;