Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery.digilib.js @ 807:1b1728926534 jquery
geometry: overlapsRect() plus some comment clarifications
author | hertzhaft |
---|---|
date | Sun, 20 Feb 2011 11:55:51 +0100 |
parents | 12f790cb30de |
children | 1a7b14deae3a |
comparison
equal
deleted
inserted
replaced
803:225054177f67 | 807:1b1728926534 |
---|---|
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; |