ba2694a1acef5f6385aed61d0fc145c3ebde4e88 galt Tue Feb 2 14:14:21 2016 -0800 Fixes #16756. It needed the position to be disguised in the code-path where the disbleHighlightingDialog is checked in hgTracks.js. diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index b0f2d3b..0e5dce2 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1172,30 +1172,33 @@ // doesn't occur when the user single clicks). doIt = dragSelect.startTime !== null || selection.y1 <= hgTracks.rulerClickHeight; } if (doIt) { // dragSelect.startTime is null if mouse has never been moved var singleClick = ( (selection.x2 === selection.x1) || dragSelect.startTime === null || (now.getTime() - dragSelect.startTime) < 100); var newPosition = genomePos.update(img, selection, singleClick); if (newPosition) { if (hgTracks.enableHighlightingDialog) dragSelect.selectionEndDialog(newPosition); else { $(imageV2.imgTbl).imgAreaSelect({hide:true}); if (imageV2.inPlaceUpdate) { + if (hgTracks.virtualSingleChrom && (newPosition.search("virt:")===0)) { + newPosition = genomePos.disguisePosition(newPosition); // DISGUISE + } imageV2.navigateInPlace("position=" + newPosition, null, true); } else { jQuery('body').css('cursor', 'wait'); document.TrackHeaderForm.submit(); } } } } else { $(imageV2.imgTbl).imgAreaSelect({hide:true}); genomePos.revertToOriginalPos(); } dragSelect.startTime = null; // blockMapClicks/allowMapClicks() is necessary if selectEnd was over a map item. setTimeout(posting.allowMapClicks,50); return true;