Skip to content

Text corruption when editing on phone: unwanted cursor jumping, character deletion, and inserting of duplicate words #520

Closed
@taigit

Description

@taigit

Describe the bug or issue here…

Steps to Reproduce

On phone, go to: https://trix-editor.org/

Scenario 1:

At the end of the edit window, create a new line

Type: abc
Move cursor to beginning of line before the 'a'
Type: d

Bug 1: 'D' is inserted after 'abc' instead of at the cursor which is before 'abc' (cursor jumping bug)

Continue scenario:
Type: new line
Bug 2: 'D' is deleted when new line is inserted (character deletion bug)

Scenario 2:

At the end of the edit window, create 5 new lines.
Move your cursor to the 3rd new line

Type: abc
Move cursor to beginning of line before the 'a'
Type: d

Bug 1 (repeated): 'D' is inserted after 'abc' instead of at the cursor

Type: new line
Bug 3: the original line now says: AbcAbc
when it should say: Abc
(inserting duplicate word bug)

Details
  • Trix version: 0.11.4
  • Browser name and version: Chrome 67.0.3396.87
  • Operating system: Android 6.0.1
  • Phone: Nexus 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions