Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTE: In multiline mode, positioning the cursor the end of the penultimate line teleports it into an impossible location at the end of the final line. #1674

Closed
Tracked by #1940
ara4n opened this issue Sep 9, 2023 · 1 comment · Fixed by matrix-org/matrix-rich-text-editor#882 or #2180
Labels
A-Composer A-Rich-Text-Editor O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Team: Element X Feature Z-Labs A defect in a feature that is behind a labs flag.

Comments

@ara4n
Copy link
Member

ara4n commented Sep 9, 2023

Steps to reproduce

  1. Write a multiline message in the RTE (wrapped; no explicit linebreaks)
  2. Decide you want to edit the end of the penultimate line, and tap on it.
  3. The cursor suddenly jumps to the far right-hand-margin of the final line... where there is no content yet (not even whitespace).
  4. Feel very confused and disoriented (and surprised that apparently this is a common editing idiom for me; i'm hitting it several times a day).

In this video, I drag the cursor to demonstrate the problem (given the tap locations don't show up in the screen recording), but the day-to-day instance of this happens when tapping to position the cursor rather than dragging it. You can't seen in the video that i'm not actually dragging the cursor into the dead space in the bottom right - the OS is doing it for me, refusing to let me leave the cursor at the end of the penultimate line.

RPReplay_Final1694204250.mp4

Outcome

What did you expect?

Cursor stays where i leave it when i position it.

What happened instead?

Cursor inexplicably teleports from under me into dead space in the far bottom-right of the textbox.

Your phone model

No response

Operating system version

No response

Application version

380

Homeserver

No response

Will you send logs?

No

@ara4n
Copy link
Member Author

ara4n commented Sep 12, 2023

I realised why I hit this so often, fwiw: if I realise i need to fix a typo while composing a msg, I skip back, fix the typo, and then tap on roughly the bottom right to skip to the end of the msg to keep typing it. If i am a little too high when tapping (which happens all too often), then i trigger this bug.

@stefanceriu stefanceriu added A-Composer S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow Team: Element X Feature labels Oct 4, 2023
@kittykat kittykat added the Z-Labs A defect in a feature that is behind a labs flag. label Nov 16, 2023
nimau added a commit that referenced this issue Nov 28, 2023
nimau added a commit that referenced this issue Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Composer A-Rich-Text-Editor O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Team: Element X Feature Z-Labs A defect in a feature that is behind a labs flag.
Projects
None yet
3 participants