projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f570d9
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Mon, 22 Feb 2016 05:02:08 +0000
(13:02 +0800)
committer
edward
<edward@roojs.com>
Mon, 22 Feb 2016 05:02:08 +0000
(13:02 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
082b296
..
786fa71
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-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());
//