mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 20:21:37 +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);
|
this.emit(nodeId, SelectEventTypes.active, this.lastPoint);
|
||||||
// TODO: Optimize the related logic after implementing the scroll bar
|
// TODO: Optimize the related logic after implementing the scroll bar
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// this._editor.scrollManager.keepBlockInView(node);
|
this._editor.scrollManager.keepBlockInView(node);
|
||||||
}, this._scrollDelay);
|
}, this._scrollDelay);
|
||||||
} else {
|
} else {
|
||||||
console.warn('Can not find node by this id');
|
console.warn('Can not find node by this id');
|
||||||
|
Loading…
Reference in New Issue
Block a user