We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e092933 commit cf9934dCopy full SHA for cf9934d
lib/timeline/component/ItemSet.js
@@ -616,8 +616,10 @@ ItemSet.prototype.redraw = function() {
616
// TODO: would be nicer to get this as a trigger from Range
617
var visibleInterval = range.end - range.start;
618
var zoomed = (visibleInterval != this.lastVisibleInterval) || (this.props.width != this.props.lastWidth);
619
- if (zoomed) this.stackDirty = true;
+ var scrolled = range.start != this.lastRangeStart;
620
+ if (zoomed || scrolled) this.stackDirty = true;
621
this.lastVisibleInterval = visibleInterval;
622
+ this.lastRangeStart = range.start;
623
this.props.lastWidth = this.props.width;
624
625
var restack = this.stackDirty;
0 commit comments