comparison client/digitallibrary/jquery/jquery.digilib.js @ 722:a8a3b92bb963 jquery

no bird zoom drag if scaler image is not zoomed
author hertzhaft
date Tue, 01 Feb 2011 14:59:15 +0100
parents aaaf0a5ada66
children 7ab46d84be32
comparison
equal deleted inserted replaced
721:aaaf0a5ada66 722:a8a3b92bb963
1322 return false; 1322 return false;
1323 }; 1323 };
1324 1324
1325 var birdZoomStartDrag = function(evt) { 1325 var birdZoomStartDrag = function(evt) {
1326 // mousedown handler: start dragging bird zoom to a new position 1326 // mousedown handler: start dragging bird zoom to a new position
1327 if (isFullArea(data.zoomArea)) return false;
1327 startPos = geom.position(evt); 1328 startPos = geom.position(evt);
1328 birdImgRect = geom.rectangle($birdImg); 1329 birdImgRect = geom.rectangle($birdImg);
1329 birdZoomRect = geom.rectangle($birdZoom); 1330 birdZoomRect = geom.rectangle($birdZoom);
1330 $(document).bind("mousemove.digilib", birdZoomMove); 1331 $(document).bind("mousemove.digilib", birdZoomMove);
1331 $(document).bind("mouseup.digilib", birdZoomEndDrag); 1332 $(document).bind("mouseup.digilib", birdZoomEndDrag);