@seafile/sdoc-editor 2.0.88-test-0.0.4 → 2.0.88-test-0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/socket/helpers.js +5 -12
- package/package.json +1 -1
package/dist/socket/helpers.js
CHANGED
|
@@ -277,20 +277,13 @@ var syncRemoteCursorLocation = exports.syncRemoteCursorLocation = function syncR
|
|
|
277
277
|
// Get front Point as cursor
|
|
278
278
|
var anchor = location.anchor,
|
|
279
279
|
focus = location.focus;
|
|
280
|
-
console.log(3, _slate.Editor.start(editor, location));
|
|
281
280
|
var newLocation = location;
|
|
282
281
|
if (!_slate.Point.equals(anchor, focus)) {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
} else {
|
|
289
|
-
newLocation = {
|
|
290
|
-
anchor: focus,
|
|
291
|
-
focus: focus
|
|
292
|
-
};
|
|
293
|
-
}
|
|
282
|
+
var frontPoint = _slate.Editor.start(editor, location);
|
|
283
|
+
newLocation = {
|
|
284
|
+
anchor: frontPoint,
|
|
285
|
+
focus: frontPoint
|
|
286
|
+
};
|
|
294
287
|
}
|
|
295
288
|
(0, _helper.setCursor)(editor, user, newLocation, cursorData);
|
|
296
289
|
|