diff options
author | bob <bcz@cs.brown.edu> | 2019-06-18 11:31:49 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-18 11:31:49 -0400 |
commit | 4f0086f6ea948c1c5254db2acc93f6735987daa5 (patch) | |
tree | ed9a9c97ac71e69261f59e706e4cd3f12e0bffe4 /src/client/views/pdf/PDFViewer.tsx | |
parent | 749eef13af1338225b2bec4dbcd7a50a5650d285 (diff) | |
parent | d7ebe7b7d19cf7dc797443aa485293670c3ee4e2 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 86a17c0a6..69372f43b 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -388,7 +388,7 @@ class Viewer extends React.Component<IViewerProps> { {this._annotations.map(anno => this.renderAnnotation(anno))} </div> </div> - </div> + </div > ); } } @@ -522,7 +522,7 @@ class PinAnnotation extends React.Component<IAnnotationProps> { class RegionAnnotation extends React.Component<IAnnotationProps> { @observable private _backgroundColor: string = "red"; - onPointerDown = (e: React.PointerEvent) => { + onPointerDown = (e: React.MouseEvent) => { let targetDoc = Cast(this.props.document.target, Doc, null); if (targetDoc) { DocumentManager.Instance.jumpToDocument(targetDoc); @@ -531,7 +531,7 @@ class RegionAnnotation extends React.Component<IAnnotationProps> { render() { return ( - <div className="pdfViewer-annotationBox" onPointerDown={this.onPointerDown} + <div className="pdfViewer-annotationBox" onClick={this.onPointerDown} style={{ top: this.props.y * scale, left: this.props.x * scale, width: this.props.width * scale, height: this.props.height * scale, pointerEvents: "all", backgroundColor: StrCast(this.props.document.color) }}></div> ); } |