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

Mobile Backspacing bugs #4959

Open
ReedRodgers opened this issue Apr 21, 2022 · 3 comments
Open

Mobile Backspacing bugs #4959

ReedRodgers opened this issue Apr 21, 2022 · 3 comments

Comments

@ReedRodgers
Copy link

ReedRodgers commented Apr 21, 2022

Description

Pressing and holding backspace on mobile through the last character remaining in a block will stop the backspace, and the first letter will not be deleted. I need to lift my finger off the backspace key and hold it again to delete the first letter, but backspacing stops again before entering the next block.
Sometimes my keyboard will be removed as I'm backspacing too.
I was reading through the Android support issue and I saw it mentioned that we need an android plugin, but I'm not sure if that's still the case since there are only 3 commits in the android plugin repo from November 2020. If that's the case please let me know and I'll give that a try.

Recording
Note that I'm constantly holding down the backspace key in this video. When backspacing stops it is not because I have lifted my finger off the backspace key
https://user-images.githubusercontent.com/30154910/164515307-8b835bbc-0bab-4bb8-9541-ade7896ace98.mp4

Sandbox

https://www.slatejs.org/examples/plaintext

Steps
To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/plaintext using an Android device
  2. Copy and paste the example line a few times, pressing enter before each paste so each new line is a new node.
  3. Select the sample document (anywhere will do, but it seems like the effect is most noticeable when blocks are shorter and more varied, and the document is longer)
  4. Start holding backspace

Expectation
When tapping backspace, the character behind the caret should be deleted, the caret position should be moved forward one character, and the mobile keyboard should still be active.
When holding backspace, it should produce the same behaviour as when we tap backspace but characters should continuously be deleted.

Environment

  • Slate Version: Whichever is used to power the plaintext example at the time of writing
  • Google Pixel 4
  • GBoard version: 11.4.07.422524001
  • Chrome version: 100.0.4896.127
  • Android version: 12
  • Android build number: SP2A.220305.012
@TrySpace
Copy link

TrySpace commented Apr 22, 2022

I have similar issues on Android, it seems to have to do with fast input, similar issues arise when typing fast; It will skip characters and often revert the cursor back to a previous focus point, often where you started typing; Waiting a few seconds will often avoid it.

I believe it has to do with some artificial delay or debounce. I remember reading this somewhere in the issues here. There's some odd things about the android input that doesn't seem to be universal.

But typing fast does not feel smooth at all, let alone holding backspace. #4715

@rxxndy
Copy link

rxxndy commented May 5, 2022

My customers are having a terrible time with this issue and many other android posting issues... we need this solved please!

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

4 participants
@TrySpace @ReedRodgers @rxxndy and others