From 3aad3eb1c516c6d11320e285a73d6c45bd4176b5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 8 Oct 2020 14:08:57 -0400 Subject: don't have PDFS snap to page boundary on smooth scroll --- src/client/views/pdf/PDFViewer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index c669a5e5f..bfee0b8e1 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -400,11 +400,11 @@ export class PDFViewer extends ViewBoxAnnotatableComponent) => { if (!LinkDocPreview.TargetDoc && !FormattedTextBoxComment.linkDoc) { - this.Document._scrollY === undefined && (this.layoutDoc._scrollTop = this._mainCont.current!.scrollTop); this.pageDelay && clearTimeout(this.pageDelay); this.pageDelay = setTimeout(() => { + this.Document._scrollY === undefined && (this.layoutDoc._scrollTop = this._mainCont.current!.scrollTop); this.pageDelay = undefined; - this._pdfViewer && (this.Document._curPage = this._pdfViewer.currentPageNumber); + //this._pdfViewer && (this.Document._curPage = this._pdfViewer.currentPageNumber); }, 250); } } -- cgit v1.2.3-70-g09d2