diff options
| author | Monika <monika_hedman@brown.edu> | 2019-06-21 11:37:28 -0400 |
|---|---|---|
| committer | Monika <monika_hedman@brown.edu> | 2019-06-21 11:37:28 -0400 |
| commit | 7eb3e346c6fddc23794f3dd0c33e280c4ee7bc24 (patch) | |
| tree | d6e9ecd9d02aabd5324586c027ec769b750e0b6e /src/client/views/pdf/PDFAnnotationLayer.tsx | |
| parent | 4b8a6b7a76ccadfd39ec037e282018c7d588dea8 (diff) | |
| parent | 179afa6e80631fcb8899408c3961bf1757e5b19b (diff) | |
pulled from master
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 |
