diff options
author | bobzel <zzzman@gmail.com> | 2020-09-07 11:59:52 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-07 11:59:52 -0400 |
commit | 004335fc4052205d6972b3f9efa8b65e5d384006 (patch) | |
tree | 3f1ca5f4aade4d00dedf046e7ef46ec725ab037f /src | |
parent | 9a1fec81467e6d4b04c6e28d66b724aae92db826 (diff) |
fully disabled scrolling on MainView which should always be unwanted
Diffstat (limited to 'src')
-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 |