diff options
author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-09-08 21:05:27 -0700 |
---|---|---|
committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-09-08 21:05:27 -0700 |
commit | 0ca5ee8de08dd79b7e346b46324edf3db5a8405c (patch) | |
tree | b335f58e495908669a2a702718d6d958f99f7f16 /src/client/views/MainView.tsx | |
parent | 8b219094b09d1de1224bb3cd552d4af0151c8ad9 (diff) | |
parent | b8300497de3d496015c719ad59df9b1d6d4b0e56 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into new_audio
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index f9b3b1da8..318d0368c 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -82,6 +82,7 @@ export class MainView extends React.Component { propertiesWidth = () => Math.max(0, Math.min(this._panelWidth - 50, CurrentUserUtils.propertiesWidth || 0)); componentDidMount() { + document.getElementById("root")?.addEventListener("scroll", e => document.getElementById("root")!.scrollTop = 0); new InkStrokeProperties(); this._sidebarContent.proto = undefined; DocServer.setPlaygroundFields(["dataTransition", "_viewTransition", "_panX", "_panY", "_viewScale", "_viewType", "_chromeStatus"]); // can play with these fields on someone else's |