Repository navigation
fix(mobile): keep wide tables scrolling inside the timeline - #571
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
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 #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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wide Markdown tables can lose horizontal drags to navigation on iOS, while Android readers can be left with clipped columns. Tables, unwrapped code, display math and diffs now share a native Gesture Handler scroller with Android nested scrolling, a horizontal indicator and an overflow shadow. Main-stack back navigation starts at the screen edge; dragging inside a block keeps the conversation open.
Diagnosis and change
fullScreenGestureEnabledunset. The installedreact-native-screens4.30.1 explicitly treats that state as enabled on iOS 26 (RNSScreen.mm,isFullScreenSwipeEffectivelyEnabled), despite the router documentation describing a false default. Set it to false in the main stack, preserving the native edge recognizer and leavinggestureEnabledintact. This covers threads, side threads and bot conversations.FlatList, with a native iOS scroll view andKeyboardChatScrollViewon Android. Embedded tables/code/diffs used React Native horizontalScrollViews without Android nested scrolling. Replace them with oneHorizontalScrollusing Gesture Handler's installed v3ScrollView,nestedScrollEnabledand iOS directional locking; also enable nesting on the timeline. Its local gesture root supports blocks rendered inside Android modal viewers. No competing pan was found on timeline rows. Native reproduction was unavailable, so Android interception and the exact failing gesture sequence remain device checks.Math.max. Tall tables retain natural height so vertical drags scroll the timeline. The 16 dp right-edge overflow shadow disappears at the right end and when content fits. Scroll offsets and shadow opacity stay on the UI thread through Reanimated; no per-frame JS callback, pan loop, list reconfiguration or item-height estimate is added.docs/copy.md§8): no UI strings changed. No UI tests or diagnostic artifacts added.Verification
bun install --frozen-lockfilepassed, followed bybunx expo install [email protected] --bunusing the already installed version.bun run typecheck, rootbun run lint apps/mobile,bun run format:check apps/mobile docs/mobile.md, andgit diff --checkpass. Expo ESLint passes for all six changed TSX files, including the new scroller.bun run lint(Expo ESLint) reports 63 errors and 10 warnings in existing source files. An independent archive of untoucheddevwith the same installed tooling reports the same 63 source errors and 10 warnings (directeslint .additionally checksmetro.config.cjsand reports its existing__dirnamediagnostic). All six changed TSX files have zero ESLint errors/warnings. Repository oxlint is clean. No lint rules were disabled.bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactiveare byte-for-byte identical: iOS6ddec9ef559ee0095ac33e94ff9418a942053b17; Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9. These match the prior production-compatible baseline; this remains JS-only.check:tmp, web build, CNG prebuild or bundle export was run. Device behavior/performance is unverified, not inferred from static checks. CI owns the full repository checks, as requested.Maintainer device checklist
Use the same installed native build and same thread for baseline versus this branch's JS. Record OS/device, app version/runtime/update ID and channel. Include an iPhone on iOS 26 and an Android phone; check an older supported iOS version if available. Test light/dark, portrait/landscape and a wide layout with the sidebar open/closed.
Zgłoszenie | Nowy status | Dlaczego…, with enough text to overflow. Start 20 alternating horizontal drags on header text, body text and blank cell padding, away from the left screen edge. Drag left to reveal the last column, right from halfway to recover the first, then right again at offset zero. Every interior drag should stay in the conversation; every column must be reachable. Repeat in an assistant answer, a human message, a bot bubble and expanded tool/summary content. Include short cells, a very long heading, long unbroken text, and a table that fits entirely.Fixes: #281
Related: #549
Related: #554