anytype-ts icon indicating copy to clipboard operation
anytype-ts copied to clipboard

Typing quickly after expanding a list dash (-) moves the cursor before the first input

Open th0rgall opened this issue 6 months ago • 0 comments
trafficstars

Have you read a contributing guide?

  • [x] I have read CONTRIBUTING.md
  • [x] I have searched the existing issues and didn't find any that were similar
  • [x] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

The cursor moves after some letters (1 or 2, depending on the typing speed) that were inputted milliseconds after (or while) expanding a - character into a list item.

See this reproduction video: https://github.com/user-attachments/assets/6b1e790e-79c1-4f26-ba2a-2a17b1c6c663

Expected Behavior

The cursor should not move before letters that were already inputted. It should always stay behind the last letter that you typed if no arrow keys are used.

Steps To Reproduce

  1. In any page, in a new block, first type - (don't press space yet)
  2. In very quick succession, press space and many other letters.
  3. Observe that the cursor has moved before the first one or two characters that you inputted after the space character, but has then continued typing as normal.

If you perform these steps slowly, there is no problem. But, I've observed it multiple times while naturally typing a new list item (always introducing a typo in the word I was typing).

Environment

- OS: macOS 14.6.1
- Version: 0.46.4 (Release version)

Update May 20th: I also tested it using Anytype-0.46.24-alpha.AppImage on an amd64 Arch Linux machine, were I could also reproduce it in the same way.

Anything else?

The issue looks very similar to this older issue #287, but I've only observed this case in the specific circumstance where I was expanding a new list item.

th0rgall avatar May 09 '25 15:05 th0rgall