X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=880d6ce0fbf224dc83a2916c028c10627be67529;hb=2e2a364298e3dab083a472eda3490064bbe550f2;hp=1ade1a8963cb783e1d621fde1080fa818d0555d2;hpb=07ff2a21489b7231c6b09a20fcdb42bf34a37d1e;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 1ade1a8963..880d6ce0fb 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -44129,10 +44129,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(); @@ -44146,10 +44151,15 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, { if(this.minWidth < this.minHeight){ minScale = this.thumbEl.getHeight() / this.minHeight; } + + console.log("MINSCALE: " + minScale); 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;