Merge pull request #41 from toeverything/fix/scroll-controller-may-not-exist

fix(editor-core): scrollController not exist in Board mode
This commit is contained in:
wang xinglong authored and GitHub committed 2022-08-02 23:53:58 +08:00
commit 0a54e95682
1 file changed
+2 -2
@@ -297,10 +297,10 @@ export class ScrollManager {
}
public lock() {
this._scrollController.lockScroll();
this._scrollController?.lockScroll();
}
public unLock() {
this._scrollController.unLockScroll();
this._scrollController?.unLockScroll();
}
}