Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery.digilib.js @ 729:aee08dbfccae jquery
no bird zoom drag if scaler image is not zoomed
| author | hertzhaft |
|---|---|
| date | Tue, 01 Feb 2011 14:59:15 +0100 |
| parents | 84ad95fd3202 |
| children | d69a72e8562f |
comparison
equal
deleted
inserted
replaced
| 728:84ad95fd3202 | 729:aee08dbfccae |
|---|---|
| 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); |
