RobertMcCoy / CodeCollaborator

Apache License 2.0
0 stars 0 forks source link

Maintain user cursor location #6

Closed RobertMcCoy closed 7 years ago

RobertMcCoy commented 7 years ago

Currently if a user goes back in their text and enters a character their cursor location is shoved back to the end of the text area. The location before the value update should be saved and then restored.

RobertMcCoy commented 7 years ago

If the caret is between the e and the s in "Testing" in the string ""Caret Testing 1 2 3" and...

  1. If another user types a letter after the S then the caret should stay in the same spot
  2. If another user types a letter before the S then the caret should increment by 1
  3. If another user removes a letter after the S then the caret should stay in the same spot
  4. If another user removes a letter before the S then the caret should de-increment by 1