Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit span endpoints by dragging #17

Open
herongrove opened this issue Jan 20, 2022 · 0 comments
Open

Edit span endpoints by dragging #17

herongrove opened this issue Jan 20, 2022 · 0 comments
Assignees

Comments

@herongrove
Copy link
Member

As a user, I want to be able to change the beginning or end of a span by dragging the edge of the span left or right. The label for the span should change position to stay centered on the new span. If the resulting span would have 0 tokens in it, the span should be deleted. Ideally, if the left edge moves past the right edge, the right edge should become the new left edge (and not move position), and the former left edge should become the right edge. For example,

Example 1: left edge moves one token leftward.

An example [sentence] is recorded here.
(User drags left edge left one token.)
An [example sentence] is recorded here.

Example 2: left edge moves past right edge

An [example] sentence is recorded here.
(User drags left edge right two tokens.)
An example] sentence[ is recorded here.
(The span display changes to reflect the new span between endpoints.)
An example [sentence] is recorded here.

Example 3: new span length would be 0

An [example] sentence is recorded here.
(User drags left edge right one token.)
An example[] sentence is recorded here.
(The span would be 0, so the span is deleted.)
An example sentence is recorded here.

@herongrove herongrove changed the title Editable span endpoints Edit span endpoints by dragging Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants