Skip to content

Commit

Permalink
Fix shift key selecting non-filtered annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Oct 5, 2023
1 parent fa2b223 commit 96b01f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ class Reader {
if (annotation) {
if (shift && this._state.selectedAnnotationIDs.length) {
let selectedIDs = this._state.selectedAnnotationIDs.slice();
let annotations = this._state.annotations;
let annotations = this._state.annotations.filter(x => !x._hidden);

let annotationIndex = annotations.findIndex(x => x.id === id);
let lastSelectedIndex = annotations.findIndex(x => x.id === selectedIDs.slice(-1)[0]);
Expand Down

0 comments on commit 96b01f1

Please sign in to comment.