mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 17:41:42 +03:00
feat: support keep block in view
This commit is contained in:
parent
8183552011
commit
bb0219c5ed
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user