Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 800:ac1d6b056a6f jquery
geometry: overlapsRect() plus some comment clarifications
| author | hertzhaft |
|---|---|
| date | Sun, 20 Feb 2011 11:55:51 +0100 |
| parents | 52c5595af03e |
| children | 4f4f455ebbdb |
comparison
equal
deleted
inserted
replaced
| 796:de7bc4c9a4c0 | 800:ac1d6b056a6f |
|---|---|
| 1428 } | 1428 } |
| 1429 // move the background image to the new position | 1429 // move the background image to the new position |
| 1430 $scaler.css({ | 1430 $scaler.css({ |
| 1431 'background-position' : bgPos.x + "px " + bgPos.y + "px" | 1431 'background-position' : bgPos.x + "px " + bgPos.y + "px" |
| 1432 }); | 1432 }); |
| 1433 // set birdview indicator to reflect new zoom position | 1433 // send message event with current zoom position |
| 1434 var za = geom.rectangle($img); | 1434 var za = geom.rectangle($img); |
| 1435 za.addPosition(delta.neg()); | 1435 za.addPosition(delta.neg()); |
| 1436 $data.trigger('dragZoom', [za]); | 1436 $data.trigger('dragZoom', [za]); |
| 1437 //TODO: setBirdZoom(data, za); | 1437 //TODO: setBirdZoom(data, za); |
| 1438 return false; | 1438 return false; |
