Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Tue, 9 Aug 2022 05:41:50 +0000 (13:41 +0800)
committerleon <leon@roojs.com>
Tue, 9 Aug 2022 05:41:50 +0000 (13:41 +0800)
Roo/dialog/UploadCropbox.js

index f1265a3..847afce 100644 (file)
@@ -485,7 +485,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         var pw = Math.ceil((this.bodyEl.getWidth() - this.canvasEl.width) / 2);
         var ph = Math.ceil((this.bodyEl.getHeight() - this.canvasEl.height) / 2);
         
-        if(!center && typeof this.startScale !== 'undefined' && this.scale < this.startScale) {
+        if(!center && typeof this.startScale !== 'undefined' && this.scale > this.startScale) {
             var old_pw = this.previewEl.getLeft(true);
             var old_ph = Math.ceil(this.previewEl.getTop(true));