facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
19.67k stars 1.67k forks source link

Bug: Mobile error cursor jumps to start line #4207

Open reymon359 opened 1 year ago

reymon359 commented 1 year ago

Hey there 👋🏽

When I click in the end of a word/line, the cursor jumps to the beginning of it

This may be related to this one https://github.com/facebook/lexical/issues/3538

Here is an example with the lexical playground

https://user-images.githubusercontent.com/31936665/227817927-b3d3ec6c-2b49-4341-adf3-1cce9481ac85.mp4

Lexical version: locally version "lexical": "0.7.6" although it is also happening on the latest version as of the moment I am writing this 😉

Steps To Reproduce

  1. on Mobile write some text
  2. then click like if you want to continue writing in the end on a line
  3. you will be jumped to the beginning of the line

Link to code example: https://playground.lexical.dev/

The current behavior

When I click in the end of a word/line, the cursor jumps to the beginning of it

The expected behavior

When I click in the end of a word/line, the cursor should be in the end of the word/line

reymon359 commented 1 year ago

Hey @zurfyx any update on this or a way to "quick" fix it while it is properly addressed? 😄

reymon359 commented 1 year ago

Hey there 👋🏽

I got told on Discord this was fixed on 0.9.2 but I can't see it on the release https://github.com/facebook/lexical/releases/tag/v0.9.2 🤔

Screenshot 2023-04-26 at 10 17 09

Why the issue has not been referenced in any PR? Shouldn't we close is if that is the case? 😄

reymon359 commented 1 year ago

I had a look to the playground, and it is still happening :(

https://user-images.githubusercontent.com/31936665/234759182-59161ba2-7c45-4218-a000-5c41ae179f53.mp4

dragonman225 commented 1 year ago

Yeah, it's happening on my phone, too. I'm using Google Chrome 116.0.5845.172 on Android 13.

https://github.com/facebook/lexical/assets/25148955/be3d77c9-7840-4ec7-8883-536cf73361eb

dragonman225 commented 4 months ago

Still happening on Google Chrome 126.0.6478.71 Android 14.

https://github.com/facebook/lexical/assets/25148955/00ad4b0b-edbb-4b54-8727-d579ab0a5e87