Repository navigation
fix(core): a tap that wobbles at a scroll edge keeps its click - #10829
Conversation
The shared scroll-edge pan held a finger from its first move away from an edge every scroller under it sits at, and the gesture host cancelled that move. WebKit ends a touch's click when one of its moves is cancelled, so a tap that drifted a few pixels lost its click, as on a pushed NavigationStack screen under the content back swipe. The pan now holds the finger only once it has moved a tap's 5 px wobble along its axis, where Mobile Safari would commit its native pan, so the page still never rubber-bands.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| lab/NavigationScreen | 83.5 kB (+41 B) · 1.5 kB CSS (0) | — | — · ✓ · ✗ |
| BottomSheetSwitcher | 18.6 kB (0) · 3.4 kB CSS (0) | — | ✗ · ✓ · — |
| BottomSheet | 69.4 kB (−20 B) · 7.7 kB CSS (0) | — | ✗ · ✓ · — |
29 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Toast | 101.1 kB (+46 B) · 10.3 kB CSS (0) | — | — · — · — |
| Slider | 112.1 kB (+45 B) · 8.8 kB CSS (0) | — | — · — · — |
| SegmentedControl | 99.5 kB (+42 B) · 6.9 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 350.8 kB (+42 B) · 2.4 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 83.5 kB (+40 B) · 1.5 kB CSS (0) | — | — · ✓ · ✓ |
| lab/PageControl | 76.7 kB (+37 B) · 709 B CSS (0) | — | — · — · — |
| lab/Comments | 357.6 kB (+32 B) · 2.5 kB CSS (0) | — | — · — · — |
| DateTimeInput | 214.5 kB (+30 B) · 18.8 kB CSS (0) | — | — · — · — |
| Lightbox | 125.8 kB (+29 B) · 10.6 kB CSS (0) | — | — · — · — |
| PowerSearch | 297.6 kB (+26 B) · 24.5 kB CSS (0) | — | — · — · — |
| DateInput | 192.3 kB (+25 B) · 17.1 kB CSS (0) | — | — · — · — |
| TimeInput | 167.2 kB (+24 B) · 16.1 kB CSS (0) | — | — · — · — |
| ContextMenu | 112.1 kB (+1 B) · 17.5 kB CSS (0) | — | — · — · — |
| MultiSelector | 99.2 kB (+1 B) · 16.9 kB CSS (0) | — | — · — · — |
| Tokenizer | 101.2 kB (+1 B) · 19.2 kB CSS (0) | — | — · — · — |
| lab/TourStep | 101.3 kB (+1 B) · 590 B CSS (0) | — | — · — · — |
| DropdownMenu | 101.0 kB (0) · 17.6 kB CSS (0) | — | — · — · — |
| Markdown | 192.3 kB (0) · 20.8 kB CSS (0) | — | — · — · — |
| MoreMenu | 101.3 kB (0) · 17.6 kB CSS (0) | — | — · — · — |
| Pagination | 114.5 kB (0) · 17.8 kB CSS (0) | — | — · — · — |
| Popover | 95.0 kB (0) · 14.3 kB CSS (0) | — | — · — · — |
| Selector | 104.3 kB (0) · 17.5 kB CSS (0) | — | — · — · — |
| Table | 129.3 kB (0) · 18.4 kB CSS (0) | — | — · — · — |
| TableCell | 113.4 kB (0) · 18.0 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 112.9 kB (0) · 17.7 kB CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 110.3 kB (0) · 773 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 111.4 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 156.0 kB (0) · 1.9 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 283.4 kB (0) · 454 B CSS (0) | — | — · — · — |
Visual changes: 2 snapshots in 1 component
A change is a question for the reviewer, not a failure.
| Component · story | Before | After | Diff |
|---|---|---|---|
| BottomSheet · Text Only (neutral, dark) | ![]() |
![]() |
![]() |
| BottomSheet · Text Only (neutral, light) | ![]() |
![]() |
![]() |
Package size: @astryxdesign/core 7.33 MB packed (+1.0 kB); no new dependencies.
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision, and then changes are needed.
Approval waits on an engineering owner deciding AST-094 DEC-30 and its FR19 (DEC-30) verification row, because FR19 allows a scroll-edge pan to cancel moves from the first move but states no 5 px point, and DEC-30 grounds that point in DEC-29, which is not on main yet (#10033). An engineering owner records the decision by commenting /approve-spec followed by the full head commit SHA; the author can do this as an engineering owner.
Required changes:
- The new
FR19 (DEC-30)verification row (spec.md:1092) has three cells in a four-column table, so add the missing failure expectation. - DEC-30 cites DEC-29 (
spec.md:1404,:1407), which this record does not contain until #10033 lands, so land after it and rebase (or declare the dependency) and cite DEC-30 in the new test titles. - DEC-30's "a 5–8 px wobble toward the edge loses its click" (
spec.md:1408) understates the trade, because the shared pan cancels from 5 px and begins only at 10 px, so a 9 px wobble loses its click too. - The changeset's "a tap on a pushed NavigationStack screen that drifts toward the back swipe still runs" should be limited to drifts under 5 px, because larger drifts still lose their click.
- AST-094 requires real-device evidence for iOS Safari claims, so add iPhone results showing that a 2–4 px wobbling tap on a pushed NavigationStack screen still clicks and that a slow pull does not rubber-band.
The core fix checks out: the new unit and WebKit cases fail on the old pan and pass here, but CI has not run on this head yet.
[Automated review]
The changeset now says a drift under 5 px keeps its click and one of 5 px or more still loses it. DEC-30 states the shared pan's trade: a wobble toward the edge from 5 px until the pan begins at 10 pt loses its click. FR19's new verification row gains its failure expectation, the new test titles cite DEC-30, and the pan's comment keeps only its reasons.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on AST-094 DEC-30 and its new FR19 (DEC-30) verification row: FR19 lets a scroll-edge pan cancel moves from the first move but names no 5 px point, and DEC-30 grounds that point in DEC-29, which is not on main yet (#10033). An engineering owner records the decision by commenting /approve-spec followed by the full head commit SHA; the author can do this as an engineering owner.
Required changes, whatever the decision:
- Miss:
TAP_WOBBLE(PanGestureRecognizer.ts:104-110) gives its 5 px value no source, while AST-094 FR2 requires each measured value to name its source next to it or be labelled a guess. - DEC-30 cites DEC-29 (
spec.md:1404,:1407), which this record does not contain at this head, so rebase onto #10033 once it lands or state the grounds for 5 px in DEC-30 itself. - AST-094 requires real-device evidence for iOS Safari claims, and no iPhone result shows that a 2–4 px wobbling tap keeps its click or that a slow pull at the edge does not rubber-band.
The follow-up commit fixed the verification row's failure column, DEC-30's trade wording, the changeset's bound and the keepsTouch comment. CI has not run on this head yet.
[Automated review]
TAP_WOBBLE names the measurement behind its value, and DEC-30 states the same grounds, so it no longer leans on a decision this record does not hold. A new case pins that the wobble is measured along the pan's axis: a pan that claims drags off its axis holds only from 5 px along it. FR19's row states RefreshControl's path in the present tense.
|
/approve-spec 31e361c |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on AST-094 DEC-30 and its new FR19 (DEC-30) verification row: FR19 lets a scroll-edge pan cancel from the first move, and DEC-18 chose that, but no current clause sets a 5 px hold point. An engineering owner records the decision by commenting /approve-spec followed by the full head commit SHA; the author can do this as an engineering owner.
Required changes, whatever the decision:
- AST-094 requires real-device evidence for every iOS Safari claim, and no iPhone result shows that a 2–4 px wobbling tap keeps its click or that Mobile Safari commits its pan only on a kept 5 px move (the new source is a simulator reading).
- DEC-30 still cites DEC-29 (
spec.md:1404,:1407), which this record does not contain at this head, so drop both references now that DEC-30 states its own reading, or rebase onto #10033 once it lands.
The latest commit names the source of TAP_WOBBLE, states the verification row in the present tense, and pins the along-axis measure with an axisRatio case. CI has not run on this head yet.
[Automated review]
DEC-30 now states the shared scroll-edge pan's 5 px hold point from its own measurement and applies DEC-18 alone, so the record no longer cites a decision it does not hold.
There was a problem hiding this comment.
Approval needs two fixes. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row, so the 5 px hold point itself is settled.
- AST-094 requires real-device evidence for every iOS Safari claim, and no iPhone result shows that a 2–4 px wobbling tap keeps its click or that Mobile Safari commits its pan only on a kept 5 px move (the stated source is a simulator reading).
- DEC-30 cites DEC-29 (
spec.md:1404,:1407), which AST-094 does not contain here or onmain, so drop both references now that DEC-30 states its own reading, or rebase onto #10033 once it lands.
The core change checks out: the new unit cases fail with the old pan and pass here. CI has not run on this draft head yet.
[Automated review]
|
Both DEC-29 references are gone: DEC-30 now states its own Mobile Safari reading and applies DEC-18 alone. A check on a real iPhone at this head is pending. |
There was a problem hiding this comment.
Approval waits on an engineering owner approving AST-094 DEC-30 and its FR19 (DEC-30) verification row again, because the latest commit edited DEC-30 after the earlier /approve-spec, which named the previous head. An engineering owner records the decision by commenting /approve-spec followed by the full head commit SHA; the author can do this as an engineering owner.
Required change, whatever the decision:
- AST-094 requires real-device evidence for every iOS Safari claim, and no iPhone result yet shows that a 2–4 px wobbling tap keeps its click or that Mobile Safari commits its pan only on a kept 5 px move (
spec.md:1406-1410; the stated source is a simulator reading).
The latest commit removes both DEC-29 references, so DEC-30 now stands on its own reading; CI has not run on this draft head yet.
[Automated review]
|
/approve-spec 4348e47 |
There was a problem hiding this comment.
Changes requested: one required change remains. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row at this head, so the 5 px hold point itself is settled.
- AST-094 requires real-device evidence for every iOS Safari claim, and DEC-30's two claims, that a tap wobbling 2–4 px keeps its click and that Mobile Safari commits its pan only on a kept 5 px move (
spec.md:1406-1410), so far rest on iOS simulator runs only; please attach iPhone results for a wobbling tap on a pushed NavigationStack screen and for a slow pull on the gestures sheet fixture.
The code change and its unit tests look right: the new cases fail without the fix and pass with it. CI has not run on this draft head yet.
[Automated review]
|
/approve-spec 4348e47 |
|
/approve-spec d814ccc |
|
/approve-spec 19059e2 |
There was a problem hiding this comment.
Changes requested: one fix remains. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row at this head, and the new unit cases fail before the fix and pass with it.
- AST-094 requires real-device evidence at the reviewed head for DEC-30's iOS Safari click claim, and DEC-31 carries the previous head's iPhone check only to a head that only merges
main, which this release-note commit is not; retake the check on this head's preview (/pages/scroll-edge-taps/?case=donefor 2–4 pt drifting taps on "Done",?case=stripfor slow edge drags) and record the results in the description.
CI has not run on this draft head yet.
The 5 px tap allowance has one home, which the pan recognizer and BottomSheet's drag share. DEC-30 now names that module, and AST-094's path list links it, so a lookup on the module finds the record.
|
/approve-spec 69e1807 |
There was a problem hiding this comment.
Changes requested: two fixes remain. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row at this head, so the 5 px hold point and the shared tapWobble.ts module are settled. The new unit and WebKit cases fail before the fix and pass with it.
- Regression:
mainhas since rewritten the condition this branch edits inuseSheetGestures.tsand added two morePAN_CANCEL_SLOPchecks (:1838and:1845onmain), so the branch no longer merges, and a merge that resolves only the conflicting hunk fails Core's typecheck withCannot find name 'PAN_CANCEL_SLOP'; mergemainand point all three of BottomSheet's wobble checks atTAP_WOBBLE. - AST-094's Platform support requires real-device evidence for DEC-30's iOS Safari click claim, and DEC-31 carries an earlier head's iPhone check only to a head that only merges
main, so after the merge, retake the check on that head's preview (/pages/scroll-edge-taps/?case=donefor taps on "Done" that drift 2–4 pt,?case=stripfor slow edge drags) and record the results in the description.
The merge is a new commit, so DEC-30 needs a fresh /approve-spec at the merged head; merging first saves a second phone check. CI has not run on this draft head yet.
|
/approve-spec 85d138c |
There was a problem hiding this comment.
Changes requested: one fix remains. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row at this head, and the new unit and WebKit cases fail before the fix and pass with it.
- AST-094's Platform support requires real-device evidence for the iOS Safari claim that a wobbling tap keeps its click, and DEC-31 carries an earlier head's iPhone check only to a head that only merges
mainwithout touching this pull request's files, so retake the check on this head's preview (/pages/scroll-edge-taps/?case=donefor taps on "Done" that drift 2–4 pt,?case=stripfor slow edge drags) and record the results in the description.
The retake needs no new commit, so the spec approval at this head still stands. CI has not run on this draft head yet.
|
/approve-spec 65e1829 |
|
Decision: D-20261111-262 |
There was a problem hiding this comment.
Changes requested: one fix remains. An engineering owner has approved AST-094 DEC-30 and its FR19 (DEC-30) verification row at this head, and the new wobble unit cases fail before the fix and pass with it.
- AST-094's Platform support requires real-device evidence for the iOS Safari claim that a wobbling tap keeps its click (DEC-30 and the changeset), and DEC-31 does not carry the earlier iPhone check to this head because later commits and merges of
mainchanged this pull request's files, so retake the check on this head's preview (/pages/scroll-edge-taps/?case=donefor taps on "Done" that drift 2–4 pt,?case=stripfor slow edge drags) and record the results in the description.
The retake needs no new commit, so the spec approval at this head still stands. CI has not run on this draft head yet.
|
Retaken on this head's preview with a real iPhone 14, side by side with 6121ed1, with normal motion and Reduce Motion. Drifting taps on "Done" ran 4 of 4 per head and mode, and slow edge drags on the strip held 2 of 2. The results are in the description's Evidence and Testing. |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft, so CI starts once it is marked ready for review; it already carries the ci:run label.
The real-iPhone check now runs on this head's preview, so AST-094 DEC-30's iOS Safari click claim has the device evidence the record requires. DEC-30 and its FR19 (DEC-30) verification row are approved by an engineering owner at this head, and the new wobble unit cases fail before the fix and pass with it.






User impact
In Safari on a phone, a tap that drifts a few pixels over a scroll-edge pan does nothing, as on a pushed NavigationStack screen.
Problem and solution fit
The shared scroll-edge pan held the finger from its first move away from an edge, and the host cancelled that move. WebKit ends a touch's click when one of its moves is cancelled, so a wobbling tap fails.
The pan now waits out a tap's 5 px wobble before it holds the finger, so the page still never rubber-bands.
Expected behavior and authority
spec:AST-094FR19 lets a scroll-edge pan cancel its moves while every scroller under the finger is at its edge (DEC-18). This pull request adds DEC-30 (Specs consistency ruling, 2026-11-09, applying DEC-18): "The shared scroll-edge pan holds a finger only once travel along its axis reaches a tap's 5 px wobble, so a tap's click survives in every component that uses it. The trade: a wobble toward the edge from 5 px until the pan begins at 10 pt loses its click."Smallest restoration
PanGestureRecognizer.keepsTouch's scroll-edge branch holds only once travel along the pan's axis reachesTAP_WOBBLE(5 px). BottomSheet's pull reads the same value in its three wobble checks. The 10 px start and the other hold rules are unchanged.Evidence
GestureHost.test.tscases fail. In WebKit, a pull's 2 and 4 px moves are cancelled, and so are both moves of a tap on "Done".Scope
Testing
The head, 65e1829, is 85d138c with a merge of main f27380a, across which this pull request's own changes are byte-identical. 85d138c is 69e1807 with a merge of main 220da36. Main had added two more uses of BottomSheet's old 5 px constant to
useSheetGestures.ts, so that merge points all three atTAP_WOBBLE. The other 14 files stayed byte-identical.69e1807 is 19059e2 with one docs-only commit: AST-094's DEC-30 names
gestures/tapWobble.ts, and its path list links the module. 19059e2 scopes the changeset to iOS Safari. 6121ed1 merged main ebb9dde.At 65e1829, every browser run used 1 worker:
pnpm build, the Storybook and sandbox builds, and the core and Lab typechecks pass.pnpm check:knowledge,pnpm check:syncandpnpm check:changesetspass./pages/scroll-edge-taps/, is test surface only. It is a raw sandbox page whose document scrolls, with three cases:?case=done,?case=stripand?case=refresh. In Chromium and WebKit at a phone's size: "Done" pops to Settings, and Reset brings the pushed screen back. The strip starts at its edge and scrolls sideways. A tap on a RefreshControl row reports that row. No case logs an error.On a real iPhone 14, 6121ed1 and 65e1829 ran side by side with normal motion and Reduce Motion. Each block read
version.jsonfirst.?case=done: taps drifting 2, 3, 4 and 3 pt pop "Done" to Settings, and Reset brings About back, 4 of 4 in every block.?case=strip: slow 200 pt drags to the right from the strip's start, 2 of 2 in every block. The strip never rubber-bands, and its first card keeps its inset. The back swipe follows the finger and springs back on release, and it fades under Reduce Motion.At 21f8a44, f72529e gained a merge of main 3765704, a comment fix and the phone check page's RefreshControl list. On main 4398069 in WebKit, NavigationStack's wobble check fails 3 of 3, with the 2 and 3 px moves cancelled. RefreshControl's passes 3 of 3.
At bdbc679, every browser run used 1 worker, as real-time touch proofs need.
pnpm test:ui(23,357) andpnpm test:node(17,766; 3 expected failures, 71 skipped).gestures.interaction.browser.spec.ts: Chromium 77 passed (4 skipped), WebKit in CI's container 69 passed (12 skipped).pnpm build, the Storybook build,pnpm typecheck, ESLint and Prettier on the changed files, andpnpm check:sync.On the iOS 26.2 Simulator (iPhone 17 Pro) in Mobile Safari, main 737ea2b's and bdbc679's Storybook builds ran interleaved.
Public and internal API delta
@astryxdesign/coreor@astryxdesign/labchanges.packages/core/src/gestures/tapWobble.tsexportsTAP_WOBBLE(5 px). No package entry exports it.this.travelAlongAxis(moved) >= TAP_WOBBLEinPanGestureRecognizer. In BottomSheet'suseSheetGestures,Math.abs(delta) >= TAP_WOBBLEand the two edge checksdelta <= -TAP_WOBBLEanddelta >= TAP_WOBBLE.PAN_CANCEL_SLOPgoes.travelAlongAxis./pages/scroll-edge-taps/.Writing rubric results
spec:AST-094: one new decision and one verification row, in the present tense. DEC-30 cites DEC-29 for the 5 px reading, and names the module that holds the value. The path list links that module.