fix render update when scrolling and text changes happen at the same time
This commit is contained in:
parent
86478b332a
commit
5b465da4e3
1 changed files with 6 additions and 11 deletions
|
|
@ -357,18 +357,13 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
// scrolling
|
// scrolling
|
||||||
if (changes & this.CHANGE_SCROLL) {
|
if (changes & this.CHANGE_SCROLL) {
|
||||||
if (changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES) {
|
if (changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES)
|
||||||
|
this.$textLayer.update(this.layerConfig);
|
||||||
|
else
|
||||||
this.$textLayer.scrollLines(this.layerConfig);
|
this.$textLayer.scrollLines(this.layerConfig);
|
||||||
this.showGutter && this.$gutterLayer.update(this.layerConfig);
|
this.showGutter && this.$gutterLayer.update(this.layerConfig);
|
||||||
this.$markerLayer.update(this.layerConfig);
|
this.$markerLayer.update(this.layerConfig);
|
||||||
this.$cursorLayer.update(this.layerConfig);
|
this.$cursorLayer.update(this.layerConfig);
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.$textLayer.update(this.layerConfig);
|
|
||||||
this.showGutter && this.$gutterLayer.update(this.layerConfig);
|
|
||||||
this.$markerLayer.update(this.layerConfig);
|
|
||||||
this.$cursorLayer.update(this.layerConfig);
|
|
||||||
}
|
|
||||||
this.$updateScrollBar();
|
this.$updateScrollBar();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue