diff --git a/source/Ox.UI/js/Image/ImageViewer.js b/source/Ox.UI/js/Image/ImageViewer.js index 7409a9a8..52c65c71 100644 --- a/source/Ox.UI/js/Image/ImageViewer.js +++ b/source/Ox.UI/js/Image/ImageViewer.js @@ -394,6 +394,7 @@ Ox.ImageViewer = function(options, self) { } function limitZoom(elastic) { + // FIXME: elastic maxZoom is still wrong var imageSize = self.imageIsWider ? self.options.imageWidth : self.options.imageHeight, minZoom = elastic ? (self.fitZoom * imageSize - 2 * self.options.elasticity) / imageSize @@ -455,7 +456,6 @@ Ox.ImageViewer = function(options, self) { function onMousewheel(e) { var $target = $(e.target), factor = e.deltaY < 0 ? 2 : 0.5; - Ox.print('MW', e.deltaY); if (e.deltaX == 0 && Math.abs(e.deltaY) > 10 && !self.mousewheelTimeout) { if ($target.is('.OxImage') || $target.is('.OxImageOverlayArea')) { self.options.center = getZoomCenter(e, factor);