mirror of https://github.com/status-im/codimd.git
Fix in firefox other client's cursor might disappear or move out of bound
This commit is contained in:
parent
f32dee3796
commit
ee3c6b5485
|
@ -320,7 +320,7 @@ ot.CodeMirrorAdapter = (function (global) {
|
||||||
for (var i = 0; i < selection.ranges.length; i++) {
|
for (var i = 0; i < selection.ranges.length; i++) {
|
||||||
var range = selection.ranges[i];
|
var range = selection.ranges[i];
|
||||||
if (range.isEmpty()) {
|
if (range.isEmpty()) {
|
||||||
selectionObjects[i] = this.setOtherCursor(range.head, color, clientId);
|
//selectionObjects[i] = this.setOtherCursor(range.head, color, clientId);
|
||||||
} else {
|
} else {
|
||||||
selectionObjects[i] = this.setOtherSelectionRange(range, color, clientId);
|
selectionObjects[i] = this.setOtherSelectionRange(range, color, clientId);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue