do not redraw after changes to scrolled out lines

This commit is contained in:
nightwing 2012-11-18 01:47:07 +04:00
commit b6890497c8

View file

@ -240,6 +240,9 @@ var VirtualRenderer = function(container, theme) {
this.$changedLines.lastRow = lastRow; this.$changedLines.lastRow = lastRow;
} }
if (this.$changedLines.firstRow > this.layerConfig.lastRow ||
this.$changedLines.lastRow < this.layerConfig.firstRow)
return;
this.$loop.schedule(this.CHANGE_LINES); this.$loop.schedule(this.CHANGE_LINES);
}; };