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

Inserter: Inserting a block on a long post fails to scroll to the new block #40690

Open
jhnstn opened this issue Apr 28, 2022 · 1 comment
Open
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended

Comments

@jhnstn
Copy link
Contributor

jhnstn commented Apr 28, 2022

Description

When inserting a block to the end of a long post the editor fails to auto scroll to the newly inserted block.
In some cases the auto scroll enables after manually scrolling the post for a few pixels. This can be noticed when inserting a paragraph block. In this case however the keyboard flickers open and closed. In other cases the block menu will open after manually scrolling but the editor fails to auto scroll to the new block. This can be reproduced with image blocks for example. Blocks that do not open a bottom sheet or the keyboard by default do not seem auto scroll after manually scrolling. The separator block exemplifies this behavior.

This behavior only happens on Android.

Step-by-step reproduction instructions

  1. Create or use a long post ( 2000 words in 20 or more paragraph blocks)
  2. Scroll to the top of the post and open the block menu
  3. Choose any block to inserter into the post

Expected behaviour

The editor scrolls to the newly inserted block

Actual behaviour

The editor fails to scroll to the newly inserted block. In some cases manually scrolling after inserting triggers the expected animations for the given block e.g. opening the bottom sheet block settings or keyboard.

Screenshots or screen recording (optional)

Untitled.mp4

Device information

  • Device: Pixel 6
  • Operating system: Android 12.0
  • WordPress app version: 19.7-rc-3
@jhnstn jhnstn added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Apr 28, 2022
@hypest
Copy link
Contributor

hypest commented May 4, 2022

Perhaps this other ticket is related?

@hypest hypest added the [Type] Bug An existing feature does not function as intended label May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants