changeset 951:9c699b6cfcca

preview for ZoomArea. shows distortions when changing aspect ratio.
author robcast
date Tue, 03 Jan 2012 21:44:22 +0100
parents 164d69e2c481
children e3dc84cbb766
files webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Tue Jan 03 21:30:27 2012 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Tue Jan 03 21:44:22 2012 +0100
@@ -1295,8 +1295,7 @@
             // clip and transform
             clickRect.clipTo(picRect);
             var area = data.imgTrafo.invtransform(clickRect);
-            //$(data).trigger('changeZoomArea', area); // TODO: doesn't work yet
-            data.zoomArea = area;
+            setZoomArea(data, area);
             // zoomed is always fit
             data.settings.ws = 1;
             delete data.dlOpts.fitwidth;