basecamp / basecamp/trix

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

Open
#689 8 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.