Repository navigation
fix(composer): a folded question answers taps again after a slow swipe - #67
Merged
Merged
Conversation
A slow, partial swipe on a docked question (down to fold it, or up from
its bar) left the whole panel ignoring taps: options, Back, ×, and the
bar's "N questions left" expand tap all did nothing until something else
recomposed the dock.
Cause: RequestFold passed `startDragImmediately = gesture.isMidway`.
`isMidway` is a plain field read once per composition. The fold
recomposes mid-drag (CollapseChanged), while `presented` is between 0
and 1, so `true` was baked in, and `draggable` then claimed every
pointer-down on the settled panel. iOS asks `isMidway` per touch. The
flag now follows `progress.isRunning`, the spring's snapshot state, so a
touch during a settle still catches the fold, and a settled panel lets
taps through.
The "N questions left" bar works as on iOS: it is the collapsed bar's
single expand control ("Show the question"), not queue navigation.
Tapping it now expands the question again.
Verified on the emulator (API 36) with the approval fixture
(dinner-three): slow half swipe down, then tapping the bar expands; slow
swipe up from the bar, then options toggle and × cancels (DELETE 204).
Also checked the full three-question flow (auto-advance, multi-select,
typed answer with the keyboard, Send posts all three answers), a
question arriving over a draft with the keyboard open, a server-side
expiry (form.replied) restoring the draft, and the nested-scroll fold
from a long question. scripts/check.sh :feature:composer passes.
Tarquinen
force-pushed
the
fix-question-ux
branch
from
November 14, 2026 16:01
f14d35c to
f322fc7
Compare
Merged
This branch was previously deployed
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.
A slow, partial swipe on a docked question, either down to fold it or up from its bar, left the whole panel ignoring taps. The options, Back, ×, and the bar's "N questions left" tap all did nothing.
Cause:
RequestFoldpassedstartDragImmediately = gesture.isMidway.isMidwayis a plain field that is read once per composition. The fold recomposes mid-drag, while it's partly folded, sotruegot baked in, anddraggablethen claimed every touch on the settled panel. iOS checksisMidwayon each touch. The flag now followsprogress.isRunning, the spring's state, so a touch during a settle still catches the fold, and a settled panel lets taps through.The "N questions left" bar works as on iOS: tapping it expands the question ("Show the question"). It isn't queue navigation. Before this fix, a slow swipe made it do nothing.
The bug is in v0.7.0 and on
dev. It doesn't touch files changed by #62.Before / after
Same scripted touches on both builds (approval fixture, question 2 of 3). Before: every tap after the slow swipe is ignored. After: the bar expands the question, the options tick, and × dismisses it. The second bar tap lands on the expanded Allergies row, which is why Allergies ticks.
question-swipe-before-after.mp4
Tapping "2 questions left" after a slow half swipe down:
Verified
form.replied) restoring the draft, and folding from a long question's scroll.scripts/check.sh :feature:composer