Skip to content

fix(composer): a folded question answers taps again after a slow swipe - #67

Merged
Tarquinen merged 1 commit into
devfrom
fix-question-ux
Nov 14, 2026
Merged

Tarquinen merged 1 commit into
devfrom
fix-question-ux

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

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: RequestFold passed startDragImmediately = gesture.isMidway. isMidway is a plain field that is read once per composition. The fold recomposes mid-drag, while it's partly folded, so true got baked in, and draggable then claimed every touch on the settled panel. iOS checks isMidway on each touch. The flag now follows progress.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:

pill

Verified

  • Emulator (API 36), approval fixture: the full three-question flow (single pick auto-advances, multi-select, typed answer with the keyboard open, Send posts all three answers), × cancels (DELETE 204), a question arriving over a draft with the keyboard open, a server expiry (form.replied) restoring the draft, and folding from a long question's scroll.
  • scripts/check.sh :feature:composer

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
Tarquinen merged commit c3c2c1e into dev Nov 14, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 14, 2026

This branch was previously deployed

1 inactive deployment
release — f322fc74 Deployed Nov 14, 2026 by Tarquinen via check #208
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