aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/Page.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-11 19:02:00 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-11 19:02:00 -0400
commitb96281d18a9c4ca0ea7f8360d7f69d12c325fada (patch)
tree9498fc9a61219585e798d35c80a5228d32716c64 /src/client/views/pdf/Page.tsx
parent64f6a0d54656ded133af113746003d61eaa1d651 (diff)
pin annotations
Diffstat (limited to 'src/client/views/pdf/Page.tsx')
-rw-r--r--src/client/views/pdf/Page.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/pdf/Page.tsx b/src/client/views/pdf/Page.tsx
index fe7369aeb..73a7a93a0 100644
--- a/src/client/views/pdf/Page.tsx
+++ b/src/client/views/pdf/Page.tsx
@@ -23,7 +23,7 @@ interface IPageProps {
pageLoaded: (index: number, page: Pdfjs.PDFPageViewport) => void;
parent: PDFBox;
renderAnnotations: (annotations: Doc[], removeOld: boolean) => void;
- makePin: (x: number, y: number) => void;
+ makePin: (x: number, y: number, page: number) => void;
}
@observer
@@ -378,7 +378,7 @@ export default class Page extends React.Component<IPageProps> {
let boundingRect = current.getBoundingClientRect();
let x = (e.clientX - boundingRect.left) * (current.offsetWidth / boundingRect.width);
let y = (e.clientY - boundingRect.top) * (current.offsetHeight / boundingRect.height);
- this.props.makePin(x, y);
+ this.props.makePin(x, y, this.props.page);
}
}