src/hg/js/hgTracks.js 1.53
1.53 2010/02/13 00:40:00 tdreszer
This work allows separate image fro sideLabels which is necessary for dragScroll off end of an image.
Index: src/hg/js/hgTracks.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgTracks.js,v
retrieving revision 1.52
retrieving revision 1.53
diff -b -B -U 4 -r1.52 -r1.53
--- src/hg/js/hgTracks.js 12 Feb 2010 21:15:41 -0000 1.52
+++ src/hg/js/hgTracks.js 13 Feb 2010 00:40:00 -0000 1.53
@@ -780,8 +780,9 @@
var leftLimit = imgBoxLeftOffset*-1;
var rightLimit = (imgBoxPortalWidth - imgBoxWidth + leftLimit);
var prevX = (imgOffset + imgBoxLeftOffset)*-1;
var portalWidth = 0;
+ panAdjustHeight(prevX);
this.each(function(){
var pic;
@@ -814,10 +815,8 @@
function initialize(){
pan.css( 'cursor', 'w-resize');
- panAdjustHeight(prevX);
-
pan.mousedown(function(e){
if(mouseIsDown == false) {
mouseIsDown = true;
@@ -898,8 +897,10 @@
}
setTimeout('blockUseMap=false;',50); // Necessary incase the selectEnd was over a map item. select takes precedence.
}
}
+});
+
function panUpdatePosition(newOffsetX,bounded)
{
// Updates the 'position/search" display with change due to panning
var portalWidthBases = imgBoxPortalEnd - imgBoxPortalStart;
@@ -994,10 +995,8 @@
}
});
}
-});
-
};
/////////////////////////////////////////////////////