Uploaded image for project: '{RETIRED} Wiki3.0'
  1. {RETIRED} Wiki3.0
  2. WIKITHREEDOTO-93

Invalid selection range after a remote operation is received

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          People

            bflueras Bogdan Flueras
            bflueras Bogdan Flueras
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: