Skip to content

fix(mobile): recover android keyboard and nested scroll gestures - #766

Merged
nixuuu merged 1 commit into
devfrom
fix/android-keyboard-table-scroll
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/android-keyboard-table-scroll

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 14, 2026

Copy link
Copy Markdown
Member

Android can open the IME over the floating composer without moving the latest content. Wide Markdown blocks also need to share gesture ownership with the vertical thread list. This adds JS-only recovery for settled keyboard bounds and moves Android gesture roots to each native window.

  • Keep native keyboard frames for animation. Reconcile show, hide, and height changes through React Native's independent Keyboard events, including a keyboard already open at mount. Defer reconciliation during a native animation and normalize the navigation-bar inset.
  • Add only the difference between reconciled bounds and the keyboard inset already supplied by KeyboardChatScrollView. Retain fix(mobile): stabilize visual cards and thread interactions #759's stable composer reserve and anchoring, without restoring Android autoscroll-to-zero.
  • Put the Android GestureHandlerRootView above both vertical and horizontal scroll views, including modal windows. Keep native directional arbitration and nestedScrollEnabled for tables, code, and diffs. The iOS root hierarchy and scroll adapter remain unchanged.

Related: #759
Related: #359
Related: #571

Recording and history

Inspected the supplied 16.05-second recording using a full 4 fps frame strip and separate keyboard/table strips. Around 0.75–1.75 s and again after 2.5 s, the keyboard covers a stationary composer and message content. The later table gestures move the feed vertically without exposing more columns. The recording cannot establish native callback delivery or exact gesture direction.

Compared git log -p and the parent of b99ac10. #759 changed the reserve, fold intent, clipping, and Android autoscroll threshold; it did not change KeyboardWindow, FloatingComposer, ChatKeyboard, or HorizontalScroll. The frame-only keyboard path dates to 49db26e (#359); the block-local gesture roots date to b6dca61 (#571). These are the code paths addressed here, but the native trigger and introducing commit for the reported failures are not confirmed. There is no evidence sufficient to label #759 as the introducing regression, so this uses Related rather than Fixes.

Verification

  • Passed with nice and TMPDIR=/var/tmp: bun install, repository typecheck, mobile typecheck, repository lint, format, and format:check. Changed-file Expo ESLint also passes. No UI tests added.
  • Full mobile Expo lint reports 112 errors and 25 warnings outside the changed files. This additional check is not claimed as passed.
  • Nightly fingerprints generated before/after with expo-updates fingerprint:generate are byte-for-byte identical: Android 141ef4e8c825ee4fc5d22c499402b284741b0970; iOS 83794f069934a7374461427d89b8d008cec19d97. No native module, dependency, config, plugin, or native setting changed.
  • Device acceptance remains unverified. Local discovery reports no Android SDK. MacStudio discovery timed out twice with no devices returned. EAS device_open failed because frameAncestors/corsOrigins require Production or Enterprise and the account has Starter. No emulator was driven, no existing AVD was modified, and no after-shots are claimed.
  • No EAS update/build, tags, releases, production services, reserved ports, web build, native generation, or full integration/E2E suite was run. Source and documentation are the only committed artifacts.

Outstanding acceptance

Keep this PR draft until the same installed Android Nightly native build can run this JS: check IME open/close, suggestions/emoji and IME height changes, writing visibility and latest content, fold/expand without feed displacement, horizontal/vertical drags from table text and padding, long code/diffs, and modal viewers. Repeat the existing iOS flow for parity. The fallback repairs missing animation updates; it does not change a native soft-input setting. A demonstrated need to change that setting must be reported separately.

Copy audit (§8)

No UI text changed. The change affects keyboard bounds and gesture ownership; device layout and accessibility acceptance remain open.

Reconcile settled Android IME bounds independently of animation callbacks
and share gesture roots across each native window. Keep the composer
reserve and iOS scroll behavior unchanged.

Related: #759
Related: #359
Related: #571
@nixuuu
nixuuu marked this pull request as ready for review November 15, 2026 00:10
@nixuuu
nixuuu merged commit 4b82761 into dev Nov 15, 2026
19 of 21 checks passed
@nixuuu
nixuuu deleted the fix/android-keyboard-table-scroll branch November 15, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant