remove print statement; add fixme

This commit is contained in:
rolux 2014-01-05 15:50:18 +05:30
parent 31382f2513
commit 6343c894e2

View file

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