From 329263d04933960f6ece41f7c70a988ebb65ed74 Mon Sep 17 00:00:00 2001 From: alt0 Date: Tue, 2 Aug 2022 19:09:45 +0800 Subject: [PATCH] fix(editor-core): scrollController not exist in Board mode --- libs/components/editor-core/src/editor/scroll/scroll.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/components/editor-core/src/editor/scroll/scroll.ts b/libs/components/editor-core/src/editor/scroll/scroll.ts index efe65e50c0..81f66578e4 100644 --- a/libs/components/editor-core/src/editor/scroll/scroll.ts +++ b/libs/components/editor-core/src/editor/scroll/scroll.ts @@ -297,10 +297,10 @@ export class ScrollManager { } public lock() { - this._scrollController.lockScroll(); + this._scrollController?.lockScroll(); } public unLock() { - this._scrollController.unLockScroll(); + this._scrollController?.unLockScroll(); } }