diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-07 15:02:16 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-07 15:02:16 -0400 |
| commit | e6b8a14e3463ba65a4dac9f1fcfa6323084904d4 (patch) | |
| tree | d92c44501f5288d9bfc1912bf5e38b7c546e46f7 /src/client/views/pdf/PDFViewer.tsx | |
| parent | 51beecf3978350998075ec2ccf0a4072b3ca850a (diff) | |
fixed following links to set the scollTop of PDFs corretion. Fixed following links to rich text anchors to scroll and highlight properly. fixed pushpin behavior to only toggle off when the target is in sight.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 3570c565a..606d3e550 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -184,7 +184,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu } else if (!LinkDocPreview.TargetDoc && !FormattedTextBoxComment.linkDoc) { // wait for mainCont and try again to scroll setTimeout(() => this._mainCont.current && smoothScroll(1000, this._mainCont.current, scrollY || 0), 250); } - setTimeout(() => this.Document._scrollY = undefined, 1000); + setTimeout(() => { this.Document._scrollTop = scrollY; this.Document._scrollY = undefined; }, 1000); } }, { fireImmediately: true } |
