From 01f0c9b113b3956ae1cdaa3ee8dbc3c7145bf652 Mon Sep 17 00:00:00 2001 From: yipstanley Date: Sun, 8 Sep 2019 17:32:04 -0400 Subject: i think pdfs should now not require scrolling to 'correct' the pan position --- src/client/views/pdf/PDFViewer.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { let startY = NumCast(this.props.Document.startY, NumCast(this.props.Document.panY)); this.props.setPanY && this.props.setPanY(startY); + this.props.scrollTo(startY); } } -- cgit v1.2.3-70-g09d2