mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat: support keep block in view
This commit is contained in:
@@ -692,7 +692,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');
|
||||
|
||||
Reference in New Issue
Block a user