changeset 976:c01876d65bb8

fixed zoom out of pixel-by-pixel.
author robcast
date Thu, 26 Jan 2012 16:37:11 +0100
parents fed2f0ba586c
children 17bf6ac7a8cd
files webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Thu Jan 26 15:36:45 2012 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Thu Jan 26 16:37:11 2012 +0100
@@ -1448,10 +1448,10 @@
         		console.debug("aspect ratio changed!");
         		// what now?
         	}
-        	// get transform for new zoomArea
+        	// get transform for new zoomArea (use 'screen' instead of data.scaleMode)
         	imgTrafo = getImgTrafo($img, newZoomArea, data.settings.rot,
 					data.scalerFlags.hmir, data.scalerFlags.vmir,
-					data.scaleMode, data);
+					'screen', data);
         	// for new background coordinates transform old zoomArea with new Transform
         	bgRect = imgTrafo.transform(data.zoomArea);
         	// correct offset because background is relative