diff options
author | Fawn <fangrui_tong@brown.edu> | 2019-06-20 11:31:15 -0400 |
---|---|---|
committer | Fawn <fangrui_tong@brown.edu> | 2019-06-20 11:31:15 -0400 |
commit | cd2db5bf11fb89e3cd7016f7f798d65698c74c5e (patch) | |
tree | 9e46a9a6b940720e68eb1f390dacecae3f4730a8 /src/client/views/pdf/PDFAnnotationLayer.tsx | |
parent | 73f03785f938542a91b28b35043f2feda2bc1432 (diff) | |
parent | e9d62f4ca0dbeb57e46239047041a8a04da7b504 (diff) |
merge
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 |