aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-09-24 18:30:18 -0400
committeryipstanley <stanley_yip@brown.edu>2019-09-24 18:30:18 -0400
commit1a12483b52c27259f0f2762d4369a79e1397af9c (patch)
tree9fca82bd3268912e60a6bf2e233f56622f53a4bb /src/client/util/DocumentManager.ts
parentc3e5b50ed59f474cddace89ad4ca25f2ef0c2f74 (diff)
ahhhh
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index a3c7429b9..eaed82918 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -132,9 +132,7 @@ export class DocumentManager {
let doc = Doc.GetProto(docDelegate);
const contextDoc = await Cast(doc.annotationOn, Doc);
if (contextDoc) {
- const page = NumCast(doc.page, linkPage || 0);
- const curPage = NumCast(contextDoc.curPage, page);
- if (page !== curPage) contextDoc.curPage = page;
+ contextDoc.panY = doc.y;
}
let docView: DocumentView | null;