# HG changeset patch # User hertzhaft # Date 1296001605 -3600 # Node ID f996df5dea63a3db2374872494688ef77a70d1c7 # Parent ba582354e659f15edff2e296a920c0c685c13f56 dragging birdview zooms correctly now diff -r ba582354e659 -r f996df5dea63 client/digitallibrary/jquery/jquery.digilib.js --- a/client/digitallibrary/jquery/jquery.digilib.js Wed Jan 26 01:01:53 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Wed Jan 26 01:26:45 2011 +0100 @@ -1038,8 +1038,11 @@ birdZoomMove(evt); // set center to click position }; if (data.zoomArea) { - settings.wx = cropFloat((newRect.x - birdImgRect.x) / birdImgRect.width); - settings.wy = cropFloat((newRect.y - birdImgRect.y) / birdImgRect.height); + // should always be true + var x = cropFloat((newRect.x - birdImgRect.x + 2) / birdImgRect.width); + var y = cropFloat((newRect.y - birdImgRect.y + 2) / birdImgRect.height); + data.zoomArea.x = x; + data.zoomArea.y = y; }; settings.ws = 1; // zoomed is always fit redisplay(data);