facebook / lexical

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

Bug: slow deletion of textual content #5304

Open edshkliaruk opened 9 months ago

edshkliaruk commented 9 months ago

The issue is that when I press the backspace button on mobile devices, the behavior differs from the native behavior. In a regular input form, with a prolonged press, it starts deleting entire phrases and speeds up, while in the lexical input, it slows down with some delay instead.

Lexical version: 0.8.1

Steps To Reproduce

  1. Let it be https://lexical.dev/
  2. Open Editor on Home page and type any text
  3. Press long backspace button

The current behavior

Slow deletion with some delay.

The expected behavior

It should be as in native input tag.

https://github.com/facebook/lexical/assets/125352863/9aaa2fe2-e4c9-4e90-b698-208f61af6f21

edshkliaruk commented 9 months ago

@acywatson it is related to web mobile too not only ios.

acywatson commented 9 months ago

@acywatson it is related to web mobile too not only ios.

Mmm that label just means that the issue occurs on ios devices, not that it's related to Lexical iOS. This library only runs on web.

Does it repro on android devices?

edshkliaruk commented 9 months ago

@acywatson Delay does not reproduce on Android devices, but there is different between input behaviour and lexical field, there is no the ability to remove entire word by long pressing as it is with input tag.

edshkliaruk commented 7 months ago

@acywatson @kevinansfield @jonasb @dreiss Is it any update of the reported issue?

tekacs commented 6 months ago

This is more comprehensively mentioned in #5040. As I mentioned there, this is a fairly big deal for any cross-platform app. 😢