Repository navigation
fix(mobile): expand a long table instead of scrolling it in place - #869
Merged
Merged
Conversation
A table with more than 20 rows kept the rest behind a fixed 360dp inner list.
That viewport did not scroll on the phone: the vertical drag belongs to the
list the table sits in, which takes the move before the nested list sees it, so
the promise printed under the table ("scroll inside the table to see the rest")
was false and rows 21+ could not be reached at all — the same nested-viewport
failure the long code block was fixed for in #713.
Paint the first 20 rows and put the rest behind an explicit control, which
paints every remaining row inline and lets the surrounding list scroll them.
The horizontal scroller stays: a wide table still pans sideways.
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.
What
A markdown table with more than 20 rows no longer hides its tail behind an inner scroll list. It paints the first 20 rows and puts the rest behind an explicit control under the table; tapping it paints every remaining row inline, and the list around the table scrolls them.
Reported against a 50-row
REVISIONS.mdpreview: the table claimed "共 50 行 · 在表格内上下滑动查看其余行", and swiping inside the table never moved it — rows 21+ were unreachable.Why the viewport could not work
The bounded viewport was a 360dp vertical
FlatListnested inside the horizontal table scroller, inside the vertical list that carries the message/document. On the phone the vertical drag belongs to the outer list, which takes the move before the nested list ever sees one, so the inner list sat motionless while the document scrolled. This is the same failure the long code block was fixed for in #713 ("a nested vertical viewport that loses the pan gesture to the message list"); the table kept that construction. Horizontal panning of a wide table is untouched — a sideways drag is not contended for, which is why the table stays inside its own horizontal scroller.Fixing it by making the nesting work would mean nested-scroll participation on every list a message can appear in (chat timeline, file preview), and would still leave the reader with a 360dp window onto the table. Painting the rows in the surrounding list removes the dependency instead.
Behaviour
Verification
mobile:tsc --noEmit,eslint, fulljest --runInBand— 128 suites / 2074 tests pass.make check-docs(renamed/updated the stale claim indocs/archives/verification/remaining-performance-2026-09-16.md, both languages).Note on what was not verified: the harness (headless Chrome / react-native-web) scrolls nested containers natively and cannot reproduce a native pan-gesture conflict, which is how the broken viewport shipped green. The fix removes the gesture dependency rather than re-testing it, so the assertions here cover what the component paints and what the control does, not on-device touch behaviour.