From e2b7fbc1d8bd0c686536671d88ac7c52fbcf6591 Mon Sep 17 00:00:00 2001 From: emro Date: Thu, 20 Jan 2022 09:56:48 -0800 Subject: [PATCH] REG-238 highlight off by one (#125) --- src/encoded/static/components/genome_browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoded/static/components/genome_browser.js b/src/encoded/static/components/genome_browser.js index f078d8fee..90459eacb 100644 --- a/src/encoded/static/components/genome_browser.js +++ b/src/encoded/static/components/genome_browser.js @@ -563,7 +563,7 @@ class GenomeBrowser extends React.Component { } drawTracks(container) { - const highlightLocation = Math.floor((this.state.x1 + this.state.x0) / 2); + const highlightLocation = Math.floor((this.state.x1 + this.state.x0) / 2) + 1; // browser uses base 1 const highlightString = `${this.state.contig}:${highlightLocation}`; const visualizer = new this.GV.GenomeVisualizer({ clampToTracks: true,