aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFAnnotationLayer.tsx
blob: 1f49e0d2f37813a103a30887c47ce35451555ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
        );
    }
}