Skip to content

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

Open
@lindadade

Description

@lindadade

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions