diff options
author | bobzel <zzzman@gmail.com> | 2020-09-21 00:22:16 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-21 00:22:16 -0400 |
commit | 6fc12ef418f420087256a1a8463faac5dcce67c6 (patch) | |
tree | 2219e686ee581376ae085e47387ba556a6ba45ec /src/client/views/MainView.tsx | |
parent | e4ae6fa6df6bb0118f113bbdf3a40f768405f7b3 (diff) |
made curPage a playground field so that scroll positions aren't mirrored.
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index aa74cc309..63672f960 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -86,7 +86,7 @@ export class MainView extends React.Component { document.getElementById("root")?.addEventListener("scroll", e => ((ele) => ele.scrollLeft = ele.scrollTop = 0)(document.getElementById("root")!)); new InkStrokeProperties(); this._sidebarContent.proto = undefined; - DocServer.setPlaygroundFields(["dataTransition", "_viewTransition", "_panX", "_panY", "_viewScale", "_scrollY", "_scrollTop", "_viewType", "_chromeStatus"]); // can play with these fields on someone else's + DocServer.setPlaygroundFields(["dataTransition", "_viewTransition", "_panX", "_panY", "_viewScale", "_scrollY", "_scrollTop", "_curPage", "_viewType", "_chromeStatus"]); // can play with these fields on someone else's DocServer.GetRefField("rtfProto").then(proto => (proto instanceof Doc) && reaction(() => StrCast(proto.BROADCAST_MESSAGE), msg => msg && alert(msg))); |