On Android, jumping cursor: when the user moves the cursor, the cursor jumps back to the previous location
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
- On phone, go to https://trix-editor.org/
- go to the bottom of the page and put cursor after the last character
- insert 3 CR to create a bunch of empty lines
- leave the cursor on the last line
- type the character 'h'. The cursor will be located after the 'h'.
- touch the screen to move the cursor to the first empty line in step 3
- 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
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/
Also seeing this behaviour on Android: https://www.dropbox.com/s/tg6oqzbdc4jekpz/trix_on_android.mp4?dl=0
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
A "very easy to reproduce" case to see the bug:
Steps to Reproduce
- On phone, go to https://trix-editor.org/
- Cursor defaults to first character of editor window
- Type the character "J". You should see: JTrix
- Move the cursor to the end of the paragraph by touching after "Trix to give them the best possible editing experience."
- Bug appears: the cursor will jump back to JTrix and be positioned between the J and T.
- This bug does not happen on the laptop version of trix
Details
Trix version: https://trix-editor.org/
Browser name and version: chrome 88.0.4324.181
Operating system: Android 10
Samsung phone. One UI version: 2.0
Samsung Galaxy A7 (2018)
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
Unfortunately, I am now experiencing this bug on mobile Firefox 87.0.0-rc.1
Phone Details: Trix version: https://trix-editor.org/ Operating system: Android 10 Samsung phone. One UI version: 2.0 Samsung Galaxy A7 (2018) Keyboard: google
Possibly related bug on Firefox mobile:
- On phone, go to https://trix-editor.org/
- go to the bottom of the page and put cursor after the last character
- type Carriage Return
- Bug: Cursor jumps to (near) the top of the edit box and the "T" in Trix is missing so the result is "rix". Also, there is a new line and the cursor is before the "r" in "rix"
Bug does not happen on mobile Chrome browser.
Phone and browser Details: Trix version: https://trix-editor.org/ Browser: mobile Firefox 87.0.0-rc.1 Operating system: Android 10 Samsung phone. One UI version: 2.0 Samsung Galaxy A7 (2018) Keyboard: google