Skip to content

Conversation

rsimon
Copy link
Member

@rsimon rsimon commented Aug 27, 2025

This is a (very) crude prototype for multi-selection, i.e. creating a single annotation from multiple disjoint parts. Works on (desktop) Chrome and Firefox. See issue #206 for more information.

DRAFT!! - just for comparison with the main branch so far

@@ -46,12 +46,20 @@ export const SelectionHandler = (

const { store, selection } = state;

let currentTarget: TextAnnotationTarget | undefined;
let currentTarget: {
previous?: TextAnnotationTarget,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not ideal (and horrible naming). But we need to record the state of the annotation before this segment was added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant