diff options
author | bobzel <zzzman@gmail.com> | 2023-12-21 15:15:38 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-21 15:15:38 -0500 |
commit | 4d61c583f39eb8ab4f112a278a1f1329b30ea97c (patch) | |
tree | f288a248bc288654527efeda07a0cf2a050e01e5 /src | |
parent | 2691b951d96f2ce7652acbea9e340b61737b3b57 (diff) |
fixed making componentview and animatescaletime observable
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index ab413e6f2..a05ea3390 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -259,8 +259,8 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps makeObservable(this); } - @observable _componentView: Opt<DocComponentView>; // needs to be accessed from DocumentView wrapper class - @observable _animateScaleTime: Opt<number>; // milliseconds for animating between views. defaults to 300 if not uset + @observable _componentView: Opt<DocComponentView> = undefined; // needs to be accessed from DocumentView wrapper class + @observable _animateScaleTime: Opt<number> = undefined; // milliseconds for animating between views. defaults to 300 if not uset @observable _animateScalingTo = 0; public get animateScaleTime() { |