diff --git a/src/timeline-gui.js b/src/timeline-gui.js index c43fa8d..c0bf5ff 100644 --- a/src/timeline-gui.js +++ b/src/timeline-gui.js @@ -411,6 +411,7 @@ Timeline.prototype.updateGUI = function() { var scrollY = this.tracksScrollY * (this.tracks.length * this.trackLabelHeight - this.canvas.height + this.headerHeight); yshift -= scrollY; if (yshift < this.headerHeight) continue; + if (yshift - this.trackLabelHeight + 1 > h) break; this.drawTrack(this.tracks[i], yshift); } @@ -925,4 +926,4 @@ Timeline.prototype.load = function() { this.rebuildTrackAnimsFromKeys(track); } } -}; \ No newline at end of file +};