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);
|
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');
|
||||||
|
|||||||
Reference in New Issue
Block a user