aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-18 10:52:10 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-18 10:52:10 -0400
commit66d4cc94bcc69f590d90dd35823f93b8e2fb90d8 (patch)
treed10495932d5ef7735f562c17f079cce9eff672f5 /src/client/views/pdf/PDFViewer.tsx
parentc50ba1c4cc01d5cd085dee0dae6f633164efeb80 (diff)
selection fixes
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx6
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>
);
}