Skip to content

Commit

Permalink
REG-238 highlight off by one (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
emro authored Jan 20, 2022
1 parent 8d3ea37 commit e2b7fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoded/static/components/genome_browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2b7fbc

Please sign in to comment.