Skip to content

Commit

Permalink
Focus ink annotation after merging
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Oct 2, 2024
1 parent 3b7f8ec commit f9e37fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/context-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ export function createAnnotationContextMenu(reader, params) {
|| (new Set(annotations.map(x => x.color))).size !== 1
|| (new Set(annotations.map(x => x.position.pageIndex))).size !== 1,
persistent: true,
onCommand: () => reader.mergeAnnotations(params.ids)
onCommand: () => {
let annotation = reader.mergeAnnotations(params.ids);
if (annotation) {
reader._updateState({ selectedAnnotationIDs: [annotation.id] });
}
}
},
],
[
Expand Down

0 comments on commit f9e37fd

Please sign in to comment.