Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Thu, 7 Jul 2022 02:32:48 +0000 (10:32 +0800)
committerleon <leon@roojs.com>
Thu, 7 Jul 2022 02:32:48 +0000 (10:32 +0800)
Roo/dialog/UploadCropbox.js

index a49734a..fd5ae28 100644 (file)
@@ -562,10 +562,15 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         
         this.startScale = this.scale;
         this.scale = (e.getWheelDelta() == 1) ? (this.scale + 1) : (this.scale - 1);
+        
+        console.log("START SCALE:" . startScale);
+        console.log("TEST SCALE: " . startScale);
         if(!this.zoomable()){
             this.scale = this.startScale;
             return;
         }
+
+        console.log("END SCALE: " . endScale);
         
         this.draw();