From 6343c894e280e15336f1cbf99415be894ba74f48 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 5 Jan 2014 15:50:18 +0530 Subject: [PATCH] remove print statement; add fixme --- source/Ox.UI/js/Image/ImageViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);