Skip to content

Commit

Permalink
Updating track after zoomLevel has a value
Browse files Browse the repository at this point in the history
Updating track is deferred until the scale factor is properly set.
  • Loading branch information
hkmoon authored and cmdcolin committed Nov 18, 2018
1 parent e4b5451 commit 586635e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/JBrowse/GenomeView.js
Expand Up @@ -2050,6 +2050,9 @@ showVisibleBlocks: function(updateHeight, pos, startX, endX, finishCallback) {
Math.round(this.pxToBp(this.offset
+ (this.stripeCount * this.stripeWidth)));

// Track update will be carried after the maxVisible has a value
if (!this.maxVisible()) return;

let showingPromises = []
this.overviewTrackIterate(function(track, view) {
showingPromises.push( new Promise((resolve,reject) => {
Expand Down

0 comments on commit 586635e

Please sign in to comment.