Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 727:42b6b6cb0744 jquery
leave dragged background image in scaler.
author | robcast |
---|---|
date | Wed, 02 Feb 2011 00:02:58 +0100 |
parents | f5a0ac47bddd |
children | 0cdec312b783 |
comparison
equal
deleted
inserted
replaced
726:f5a0ac47bddd | 727:42b6b6cb0744 |
---|---|
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) { |