From 004335fc4052205d6972b3f9efa8b65e5d384006 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 7 Sep 2020 11:59:52 -0400 Subject: fully disabled scrolling on MainView which should always be unwanted --- src/client/views/MainView.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/views/MainView.tsx') 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 -- cgit v1.2.3-70-g09d2