aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-09-08 17:32:04 -0400
committeryipstanley <stanley_yip@brown.edu>2019-09-08 17:32:04 -0400
commit01f0c9b113b3956ae1cdaa3ee8dbc3c7145bf652 (patch)
tree0db4e6720eca9e0673265ffb631cbb68404ddb27
parenta33974ee08e9520cb798ba97028c9b7ddcd787be (diff)
i think pdfs should now not require scrolling to 'correct' the pan position
-rw-r--r--src/client/views/pdf/PDFViewer.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 91fc755c8..7bc1d3507 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -181,6 +181,7 @@ export class PDFViewer extends React.Component<IViewerProps> {
let startY = NumCast(this.props.Document.startY, NumCast(this.props.Document.panY));
this.props.setPanY && this.props.setPanY(startY);
+ this.props.scrollTo(startY);
}
}