Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Mon, 22 Feb 2016 05:02:08 +0000 (13:02 +0800)
committeredward <edward@roojs.com>
Mon, 22 Feb 2016 05:02:08 +0000 (13:02 +0800)
Roo/bootstrap/UploadCropbox.js

index 082b296..786fa71 100644 (file)
@@ -403,10 +403,10 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
     {   
         e.stopEvent();
         
-        this.zoomable(e.getWheelDelta());
-        
         this.scale = (e.getWheelDelta() == 1) ? (this.scale + 1) : (this.scale - 1);
         
+        this.zoomable();
+        
         var width = Math.ceil(this.imageEl.OriginWidth * this.getScaleLevel());
         var height = Math.ceil(this.imageEl.OriginHeight * this.getScaleLevel());
 //