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

The cursor is not shifted to the left as expected #5836

Open
lindadade opened this issue Apr 2, 2025 · 1 comment
Open

The cursor is not shifted to the left as expected #5836

lindadade opened this issue Apr 2, 2025 · 1 comment

Comments

@lindadade
Copy link

Description

When the Android terminal frequently inserts and deletes the same character, the cursor will shift to the left

Recording
Path: In the Slate official website editor, open it through the Android terminal, repeatedly insert_text and remove_text the same characters frequently, and the cursor will shift to the left unexpectedly!

d0e51e2fb937d1a52e88365d62b0513d.mov

Sandbox
The Android version uses the official editor on the official website

from https://www.slatejs.org/examples/richtext

Expectation
When editing on Android, frequently repeat insert_text and remove_text with the same characters, and the cursor moves as expected!

Environment

  • Slate Version: 0.112.0
  • Operating System: Android

Context
It can be reproduced well on the official website.

  1. Enter several identical characters first
  2. Deleting and adding the same character back and forth
  3. Even quick operation
  4. You can see that the cursor is unexpectedly offset to the left.

Watch the video for details

d0e51e2fb937d1a52e88365d62b0513d.mov
@lindadade
Copy link
Author

Is there a way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant