Details
-
Bug
-
Resolution: Unresolved
-
Minor
Description
Have 2 users on same editing session id.
Both have the text: hello
User1 selects the whole text.
User2 inserts/removes something from the text.
Expected: User1's selection is shifted accordingly.
Actual: User1's selection is messed.
Related issue:
User1 has the text "hello" selected. Selection range [0,5]
User2 removes "h".
User1 sees "ello" selected but the selection range is same [0,5]. It should be [0,4]
User1 deletes the selection - that is "ello".
Expected: the selection is removed
Actual: USer1 has an error: Position is greater than document, because the selection range is [0,5] and not [0,4] as it should be.
Related issue:
Define behaviour on what happens with selection when User1 has "hello" selected and User2 inserts/removes something at the middle.
Related bug:
User1 has text hello and selected "ello". Then types "11" at position 1 and 2 (replacing it's selection with 11) while User2 has nothing selected but types "22" at position 1 and 2.
Expected: h1122o
Actual: h122o1