aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFAnnotationLayer.tsx
blob: 4f267a5c0ea34f70b686ca805cfeab6f6f9bb04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React = require("react");
import { observer } from "mobx-react";
import "./PDFAnnotationLayer.scss";

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" onPointerDown={this.onPointerDown} />;
    }
}