Skip to content

Commit 8b44b49

Browse files
committed
PDFViewer now forwards Annotorious cancelSelected event
1 parent 64c163d commit 8b44b49

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/pdf/endless/AnnotatablePage.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ const AnnotatablePage = props => {
124124
anno.on('createAnnotation', onCreateAnnotation);
125125
anno.on('updateAnnotation', onUpdateAnnotation);
126126
anno.on('deleteAnnotation', onDeleteAnnotation);
127+
anno.on('cancelSelected', a => props.onCancelSelected(a));
128+
127129
setAnno(anno);
128130

129131
r.on('selectAnnotation', () => anno.selectAnnotation());

src/pdf/paginated/AnnotatablePage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const AnnotatablePage = props => {
8383
anno.on('createAnnotation', a => props.onCreateAnnotation(a));
8484
anno.on('updateAnnotation', (a, p) => props.onUpdateAnnotation(a, p));
8585
anno.on('deleteAnnotation', a => props.onDeleteAnnotation(a));
86+
anno.on('cancelSelected', a => props.onCancelSelected(a));
8687

8788
anno.setAnnotations(image);
8889
setAnno(anno);

0 commit comments

Comments
 (0)