diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-13 09:27:25 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-13 09:27:25 -0500 |
| commit | df0c30a1f8c1a507be7582a9c97dc5546ae719c8 (patch) | |
| tree | 9c489f866f68aac465f2e7a7d59d68c4fe056788 /src/client/views/pdf/PDFViewer.tsx | |
| parent | b18d4d2b9a4a624e61116642d4dbfe9a53437d0c (diff) | |
fixed marquee annotations on pdfs from crashing - still need to fix offset problem.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 1a1bc70b2..1750b526e 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -553,8 +553,8 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu contentZoom = () => this._zoomed; render() { TraceMobx(); - return <div> - <div className={`pdfViewerDash${this.annotationsActive() ? "-interactive" : ""}`} ref={this._mainCont} + return <div className="pdfViewer-content" ref={this._mainCont}> + <div className={`pdfViewerDash${this.annotationsActive() ? "-interactive" : ""}`} onScroll={this.onScroll} onWheel={this.onZoomWheel} onPointerDown={this.onPointerDown} onClick={this.onClick} style={{ overflowX: this._zoomed !== 1 ? "scroll" : undefined, @@ -571,8 +571,10 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu {!this._marqueeing || !this._mainCont.current || !this._annotationLayer.current ? (null) : <MarqueeAnnotator rootDoc={this.rootDoc} scrollTop={0} down={this._marqueeing} anchorMenuClick={this.props.anchorMenuClick} - addDocument={this.addDocument} finishMarquee={this.finishMarquee} - getPageFromScroll={this.getPageFromScroll} savedAnnotations={this._savedAnnotations} + addDocument={this.addDocument} + finishMarquee={this.finishMarquee} + getPageFromScroll={this.getPageFromScroll} + savedAnnotations={this._savedAnnotations} annotationLayer={this._annotationLayer.current} mainCont={this._mainCont.current} />} </div>; } |
