roojs-core.js
[roojs1] / roojs-ui-debug.js
index 2d86e24..da26f31 100644 (file)
@@ -44107,10 +44107,20 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         x = x - this.mouseX;
         y = y - this.mouseY;
         
+        console.log("MOVE LEFT / RIGHT");
+        console.log(x);
+        console.log("MOVE UP / DOWN");
+        console.log(y);
+
         var bgX = Math.ceil(x + this.previewEl.getLeft(true));
         var bgY = Math.ceil(y + this.previewEl.getTop(true));
+
+        console.log("bgX");
+        console.log(bgX);
+        console.log("bgY");
+        console.log(bgY);
         
-        bgX = (minX < bgX) ? minX : ((maxX > bgX) ? maxX : bgX);
+        // bgX = (minX < bgX) ? minX : ((maxX > bgX) ? maxX : bgX);
         bgY = (minY < bgY) ? minY : ((maxY > bgY) ? maxY : bgY);
         
         this.previewEl.setLeft(bgX);