diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-06-19 10:07:45 -0400 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-06-19 10:07:45 -0400 |
| commit | 5959f37c89db0fcafdc2aa94a4aba692960edb54 (patch) | |
| tree | 720b7010d2d107770862353a5a6ac0e327eb1c8b /src/client/views/pdf/PDFAnnotationLayer.tsx | |
| parent | c2da1676379817fb977a7233fadfb96ab67dc16f (diff) | |
| parent | 0674331f3611d297028526c888c718a75b012e0a (diff) | |
merged
Diffstat (limited to 'src/client/views/pdf/PDFAnnotationLayer.tsx')
| -rw-r--r-- | src/client/views/pdf/PDFAnnotationLayer.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFAnnotationLayer.tsx b/src/client/views/pdf/PDFAnnotationLayer.tsx new file mode 100644 index 000000000..1f49e0d2f --- /dev/null +++ b/src/client/views/pdf/PDFAnnotationLayer.tsx @@ -0,0 +1,24 @@ +import React = require("react"); +import { observer } from "mobx-react"; + +interface IAnnotationProps { + +} + +@observer +export class PDFAnnotationLayer extends React.Component { + onPointerDown = (e: React.PointerEvent) => { + if (e.ctrlKey) { + console.log("annotating"); + e.stopPropagation(); + } + } + + render() { + return ( + <div className="pdfAnnotationLayer-cont" style={{ width: "100%", height: "100%", position: "relative", top: "-200%" }} onPointerDown={this.onPointerDown}> + + </div> + ); + } +}
\ No newline at end of file |
