diff --git a/source/UI/js/Image/ImageViewer.js b/source/UI/js/Image/ImageViewer.js index d95db5cd..00cb7855 100644 --- a/source/UI/js/Image/ImageViewer.js +++ b/source/UI/js/Image/ImageViewer.js @@ -510,8 +510,8 @@ Ox.ImageViewer = function(options, self) { function onMousewheel(e) { var $target = $(e.target), - factor = e.deltaY < 0 ? 2 : 0.5; - if (e.deltaX == 0 && Math.abs(e.deltaY) > 10 && !self.mousewheelTimeout) { + factor = e.deltaY > 0 ? 2 : 0.5; + if (e.deltaX == 0 && Math.abs(e.deltaY) && !self.mousewheelTimeout) { if ($target.is('.OxImage') || $target.is('.OxImageOverlayArea')) { self.options.center = getZoomCenter(e, factor); self.options.zoom = self.zoom * factor; @@ -640,4 +640,4 @@ Ox.ImageViewer = function(options, self) { return that; -}; \ No newline at end of file +};