Skip to content

KeyboardChatScrollView (blankSpace): On Android, scroll gesture doesn't work on content when is less tall than viewport. #1453

@trcoffman

Description

@trcoffman

Describe the bug
If you have a KeyboardChatScrollView, and the content inside that is shorter than the viewport, and you add enough blankSpace to make it scrollable, then the scroll gesture does not work when you place your finger on the content. It only works when you place your finger on the blank space below the content and scroll. This only happens if the content is short enough that the scrollview would not be scrollable without blankSpace being applied. If the content becomes long enough that the scrollview would be scrollable whether or not you have blankSpace then everything works flawlessly.

Repo for reproducing
https://github.com/trcoffman/react-native-keyboard-controller/tree/blankSpace-android-bug-repro

To Reproduce

  • Check out my branch
  • Run FabricExample
  • Open 'Blank Space Android Gesture Bug' example.

Expected behavior

  • Placing finger on messages at the top and scrolling scrolls the scrollview.

Screenshots
If applicable, add screenshots to help explain your problem.

screen-20260508-142713-1778275599868.mp4

Smartphone (please complete the following information):

  • Pixel 7 (Android 16).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions