do not redraw whole editor when only one cursor is visible
This commit is contained in:
parent
b77c3b348e
commit
04e83afee1
1 changed files with 2 additions and 2 deletions
|
|
@ -107,11 +107,11 @@ var Cursor = function(parentEl) {
|
||||||
if (!this.isVisible)
|
if (!this.isVisible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var element = this.element;
|
var element = this.cursors.length == 1 ? this.cursor : this.element;
|
||||||
this.blinkId = setInterval(function() {
|
this.blinkId = setInterval(function() {
|
||||||
element.style.visibility = "hidden";
|
element.style.visibility = "hidden";
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
element.style.visibility = "visible";
|
element.style.visibility = "";
|
||||||
}, 400);
|
}, 400);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue