aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFAnnotationLayer.tsx
blob: e92dcacbf8a6666a9bf5f09fdc54167e92736a20 (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>
        )
    }
}