Merge pull request #198 from toeverything/feature/fix-backspace

Feature/fix backspace
This commit is contained in:
Qi authored and GitHub committed 2022-08-12 14:43:49 +08:00
commit 7dd66e6737
2 files changed
+13 -8

No files matched your search

@@ -690,7 +690,7 @@ export class SelectionManager implements VirgoSelection {
this.emit(nodeId, SelectEventTypes.active, this.lastPoint);
// TODO: Optimize the related logic after implementing the scroll bar
setTimeout(() => {
// this._editor.scrollManager.keepBlockInView(node);
this._editor.scrollManager.keepBlockInView(node);
}, this._scrollDelay);
} else {
console.warn('Can not find node by this id');