diff options
author | bobzel <zzzman@gmail.com> | 2020-10-05 09:36:13 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-05 09:36:13 -0400 |
commit | b725cbb244136ddfffad24d4ac68b9beb31845a3 (patch) | |
tree | 3454b151cf9aea7feec9fc3d1d95f08da5f0b2b8 /src/client/views/pdf/PDFViewer.tsx | |
parent | 8e14d42c61efb0ee5547fbcb7ec9131a7f0ff74f (diff) |
stopped ctrl-a from selecting doucment.body. prevented pdfviewer's texxt layer from scrolling horizontally when text annotations go out of bounds horizontally. fixed text boxes to not grab selectonOnLoad focus unless they're in an active tab.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 77dd40f2a..582e4ba84 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -155,6 +155,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu this._mainCont.current.scrollTop = this.layoutDoc._scrollTop || 0; const observer = new _global.ResizeObserver(action((entries: any) => this._mainCont.current && (this._mainCont.current.scrollTop = this.layoutDoc._scrollTop || 0))); observer.observe(this._mainCont.current); + this._mainCont.current.addEventListener("scroll", (e) => (e.target as any).scrollLeft = 0); } this._disposers.searchMatch = reaction(() => Doc.IsSearchMatch(this.rootDoc), |