Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery.digilib.js @ 734:609e5bf29d1a jquery
leave dragged background image in scaler.
author | robcast |
---|---|
date | Wed, 02 Feb 2011 00:02:58 +0100 |
parents | 25f2898696a2 |
children | 54928116a7b2 |
comparison
equal
deleted
inserted
replaced
733:25f2898696a2 | 734:609e5bf29d1a |
---|---|
1379 }; | 1379 }; |
1380 | 1380 |
1381 // mouseup handler: reload zoomed image in new position | 1381 // mouseup handler: reload zoomed image in new position |
1382 var dragEnd = function (evt) { | 1382 var dragEnd = function (evt) { |
1383 $scaler.css({ | 1383 $scaler.css({ |
1384 'background-image' : 'none', | |
1385 'cursor' : 'default' | 1384 'cursor' : 'default' |
1386 }); | 1385 }); |
1387 $document.unbind("mousemove.dlZoomDrag", dragMove); | 1386 $document.unbind("mousemove.dlZoomDrag", dragMove); |
1388 $document.unbind("mouseup.dlZoomDrag", dragEnd); | 1387 $document.unbind("mouseup.dlZoomDrag", dragEnd); |
1389 if (delta == null || delta.distance() < 2) { | 1388 if (delta == null || delta.distance() < 2) { |