Trix: On Android, jumping cursor: when the user moves the cursor, the cursor jumps back to the previous location

Created on 4 Oct 2019  路  5Comments  路  Source: basecamp/trix

On Android, when the user clicks to move the cursor, the cursor will move there and then "automatically" return to the previous location without the user specifying this return action.
One consequence is that if the user then types characters after the cursor click, the characters will be placed in the wrong place because the cursor moved back to the previous location.

Steps to Reproduce
  1. On phone, go to https://trix-editor.org/
  2. go to the bottom of the page and put cursor after the last character
  3. insert 3 CR to create a bunch of empty lines
  4. leave the cursor on the last line
  5. type the character 'h'. The cursor will be located after the 'h'.
  6. touch the screen to move the cursor to the first empty line in step 3
  7. the cursor will automatically jump to the position of step 5 -- even though it should be in the position from step 6

This bug does not happen on the laptop version of trix

Details

Trix version: https://trix-editor.org/
Browser name and version: chrome 77.0.3865.92
Operating system: Android 9
Samsung phone. One UI version: 1.0
Samsung Galaxy A7

bug

Most helpful comment

Can reproduce on mobile Chrome 83.0
Can not reproduce on moble Firefox 68.9.0

Details

Trix version: https://trix-editor.org/
Operating system: Android 10
Model: Samsung Galaxy A31 (One UI version: 2.1)
Keyboard: Samsung keyboard

All 5 comments

Might be related to #682

leave comment to prevent stale-bot from closing

Just verified that the bug is still happening on https://trix-editor.org/

Can reproduce on mobile Chrome 83.0
Can not reproduce on moble Firefox 68.9.0

Details

Trix version: https://trix-editor.org/
Operating system: Android 10
Model: Samsung Galaxy A31 (One UI version: 2.1)
Keyboard: Samsung keyboard

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madikarizma picture madikarizma  路  5Comments

adueck picture adueck  路  3Comments

betorina picture betorina  路  3Comments

plainspace picture plainspace  路  4Comments

atuttle picture atuttle  路  4Comments