Line operations selects all lines with same timestamp #38
Labels
No labels
Priority
High
Priority
Low
Priority
Mid
bug
duplicate
enhancement
help wanted
invalid
question
upstream
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AnthonyKwon/ti_lyricstudio#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Line operations should not change selected lines, unless user selected multiples lines and performed Move Row Up/Down operations.
(Move Row Up/Down operation is currently planned as single-line only operation, might be changed later).
Actual Behavior
When line operation is performed, editor selects every line with same timestamp value.
Initial State:

Line Add:

Move Up:

Move Down:

Line Delete:

Additional Context
Lyric_DataUpdated, which triggers on every line change, seems to be the source of this issue.foreach (var line in Lines.Where(l => oldSelections.Contains(l.Data.Time)))When it re-synchronise the selection with new data, it compares old selection list with new line data, to create new selection list.
But it only compares the timestamp. Timestamp is very likely to collide with other lines, so other method should be used.