|
@ -616,8 +616,10 @@ ItemSet.prototype.redraw = function() { |
|
|
// TODO: would be nicer to get this as a trigger from Range
|
|
|
// TODO: would be nicer to get this as a trigger from Range
|
|
|
var visibleInterval = range.end - range.start; |
|
|
var visibleInterval = range.end - range.start; |
|
|
var zoomed = (visibleInterval != this.lastVisibleInterval) || (this.props.width != this.props.lastWidth); |
|
|
var zoomed = (visibleInterval != this.lastVisibleInterval) || (this.props.width != this.props.lastWidth); |
|
|
if (zoomed) this.stackDirty = true; |
|
|
|
|
|
|
|
|
var scrolled = range.start != this.lastRangeStart; |
|
|
|
|
|
if (zoomed || scrolled) this.stackDirty = true; |
|
|
this.lastVisibleInterval = visibleInterval; |
|
|
this.lastVisibleInterval = visibleInterval; |
|
|
|
|
|
this.lastRangeStart = range.start; |
|
|
this.props.lastWidth = this.props.width; |
|
|
this.props.lastWidth = this.props.width; |
|
|
|
|
|
|
|
|
var restack = this.stackDirty; |
|
|
var restack = this.stackDirty; |
|
|