Skip to content

docs(useLongPress): the tolerance comment says each axis, and an unused import goes - #8358

Closed
vjeux wants to merge 1648 commits into
meta:mainfrom
vjeux:uikit/f2-long-press-source
Closed

vjeux wants to merge 1648 commits into
meta:mainfrom
vjeux:uikit/f2-long-press-source

Conversation

@vjeux

@vjeux vjeux commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #8360. Review only this pull request's change: vjeux/astryx@75392b2...a1585b3

Why

useLongPress's comments described its movement tolerance as a distance and the context menu's allowance as settled, but the hook measures each axis, the released rule, and the allowance is unmeasured. The UIKit gestures table also imported a press value it never used.

What led to it

The single source for a long press's numbers, which this pull request introduced, now rides in #8360, which merges first in the maintainer's order. These two follow-ups remain.

Options and tradeoffs

  • Leave the comments: a reader would expect distance-based cancellation and could "fix" the hook toward it, changing ContextMenu's released behavior.
  • Change the hook to measure a distance: one rule with the recognizer, but a behavior change nobody asked for.
  • Correct the comments and drop the unused import.

Why this choice

No behavior changes. The comments now say useLongPress measures each axis, as released, and that the context menu's allowance stays a guess until measured (spec:AST-094 FR2).

How to check it

  1. Read hooks/useLongPress.ts's tolerance comment. Expected: it says each axis.
  2. Run the hooks and motion suites. Expected: they pass unchanged.

Evidence

  • Two files change: a comment in useLongPress.ts and one import line in motion/uikit/gestures.ts.
  • Core's unit suite passes.

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 29, 2026 6:43pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Oct 29, 2026, 7:09 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision. Measuring useLongPress travel as a distance, for ContextMenu's long press and the menu trigger hold, has no current spec claim, and this head adds draft spec:AST-094, whose FR12 expects context menus and menus to use their own measured long-press values. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Two changes are needed whatever the decision:

  • Land #8356 and the PRs below it first, or rebase onto them, so this pull request carries only its long-press commit instead of about 35,800 authored lines across 230 files.
  • The released 0.7.4 documents moveCancelPx as a per-axis limit, so the distance rule needs a [breaking] Changeset in a declared minor that names the affected drift and the migration, not a patch [fix].

[Automated review]

@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest stable 0.7.4 documents moveCancelPx as "Movement past this distance (px, either axis)" and checks each axis, so measuring it as a distance changes a released contract: a diagonal drift between 10 and 14.1 px opens the menu on 0.7.4 and cancels the press here. Under architecture:public-component-api INV9 and spec:AST-017 DEC-1 this needs a [breaking] Changeset in a declared minor that names this scenario and the migration. main declares 0.7.5, a patch, where FR31 admits no [breaking] Changeset.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner: no current spec states how far a held finger may travel before useLongPress cancels, so measuring that travel as a 10 px distance for ContextMenu's long press and the menu trigger hold needs an engineering owner to identify or approve the governing spec, which they record by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner). Whatever that decision, these changes are needed:

  • Land #8356 and the PRs below it first, or rebase onto them, so this pull request carries only its long-press commits instead of about 35,500 authored lines across 221 files.
  • The released 0.7.4 documents moveCancelPx as a per-axis limit, so a distance rule needs a [breaking] Changeset in a declared minor that names the affected drift and the migration, not a patch [fix].
  • packages/core/src/hooks/useLongPress.doc.mjs still describes the per-axis rule in both of its moveCancelPx descriptions.
  • The trigger hold also runs for a pen, so spec:AST-017 FR59 needs a named reason and pen before-and-after evidence, or the pen keeps the per-axis rule.

[Automated review]

Comment thread packages/core/src/hooks/useLongPress.ts Outdated
) {
// A distance, as UIKit measures `allowableMovement`: a (7, 7) drift
// keeps the press, a (7.2, 7.2) one ends it.
if (Math.hypot(point.x - from.x, point.y - from.y) > moveCancelPx) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest stable 0.7.4 documents moveCancelPx as “px, either axis” and tests each axis, so this distance check changes a released contract: a (9, 9) drift kept the press before and cancels it now. If the distance is approved, it needs a [breaking] Changeset in a declared minor (spec:AST-017 FR31), and useLongPress.doc.mjs lines 48 and 97 need the new rule as well.

@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main declares 0.7.5, a patch, and this changes the moveCancelPx rule 0.7.4 documents, so it cannot ship as patch [fix]: spec:AST-017 FR31 admits a [breaking] Changeset only once main declares a minor.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

Component Size

Component Import before Import after Delta CSS before CSS after Delta
core/AlertDialog 56.9KB 57.5KB +615B 12.4KB 12.4KB 0B
core/AppShell 57.9KB 58.4KB +550B 11.6KB 11.6KB 0B
core/AvatarGroupOverflow 39.9KB 40.5KB +627B 6.4KB 6.4KB 0B
core/Banner 47.8KB 48.4KB +594B 9.9KB 9.9KB 0B
core/BaseTypeahead 54.3KB 54.9KB +552B 9.9KB 9.9KB 0B
core/BreadcrumbItem 66.4KB 66.9KB +592B 11.0KB 11.0KB 0B
core/Button 43.3KB 43.9KB +604B 9.2KB 9.2KB 0B
core/Calendar 54.9KB 55.5KB +601B 10.0KB 10.0KB 0B
core/Carousel 50.2KB 50.8KB +634B 10.2KB 10.2KB 0B
core/ChatComposer 60.6KB 61.2KB +602B 10.8KB 10.8KB 0B
core/ChatComposerInput 55.7KB 56.3KB +577B 10.1KB 10.1KB 0B
core/ChatComposerTokenElement 55.7KB 56.3KB +575B 10.1KB 10.1KB 0B
core/ChatDictationButton 46.5KB 47.1KB +585B 9.5KB 9.5KB 0B
core/ChatLayout 48.8KB 49.4KB +598B 9.9KB 9.9KB 0B
core/ChatLayoutScrollButton 46.4KB 47.0KB +577B 9.6KB 9.6KB 0B
core/ChatSendButton 45.8KB 46.4KB +575B 9.2KB 9.2KB 0B
core/CheckboxInput 49.9KB 50.5KB +575B 9.3KB 9.3KB 0B
core/CheckboxListItem 54.0KB 54.6KB +564B 10.5KB 10.5KB 0B
core/ClickableCard 12.8KB 13.4KB +626B 6.9KB 6.9KB 0B
core/CodeBlock 60.5KB 61.1KB +591B 10.7KB 10.7KB 0B
core/Collapsible 11.7KB 12.3KB +608B 4.2KB 4.2KB 0B
core/CommandPalette 50.9KB 51.5KB +577B 11.8KB 11.8KB 0B
core/CommandPaletteItem 8.4KB 9.0KB +596B 3.5KB 3.5KB 0B
core/ComplexSelector 55.8KB 56.4KB +628B 10.6KB 10.6KB 0B
core/ContextMenu 77.7KB 78.3KB +564B 14.6KB 14.6KB 0B
core/ContextMenuItem 16.6KB 17.2KB +640B 5.2KB 5.2KB 0B
core/DateInput 99.9KB 100.4KB +565B 14.8KB 14.8KB 0B
core/DateRangeInput 69.4KB 70.0KB +625B 11.2KB 11.2KB 0B
core/DateTimeInput 110.1KB 110.6KB +551B 15.2KB 15.2KB 0B
core/DialogHeader 48.8KB 49.4KB +585B 9.8KB 9.8KB 0B
core/DrawerHeader 48.9KB 49.5KB +550B 11.2KB 11.2KB 0B
core/DropdownMenu 72.7KB 73.2KB +574B 14.7KB 14.7KB 0B
core/DropdownMenuCheckboxItem 16.1KB 16.7KB +617B 5.6KB 5.6KB 0B
core/DropdownMenuItem 15.4KB 16.0KB +611B 5.2KB 5.2KB 0B
core/DropdownMenuRadioItem 16.2KB 16.8KB +607B 5.6KB 5.6KB 0B
core/DropdownMenuSubMenu 58.1KB 58.6KB +574B 9.5KB 9.5KB 0B
core/FileInput 54.1KB 54.6KB +557B 10.3KB 10.3KB 0B
core/IconButton 43.3KB 43.9KB +603B 9.2KB 9.2KB 0B
core/Item 11.4KB 11.9KB +606B 4.7KB 4.7KB 0B
core/LayerProvider 63.3KB 63.9KB +606B 10.1KB 10.1KB 0B
core/Lightbox 51.2KB 51.7KB +559B 9.8KB 9.8KB 0B
core/Link 43.5KB 44.1KB +599B 7.6KB 7.6KB 0B
core/ListItem 53.5KB 54.0KB +571B 10.5KB 10.5KB 0B
core/Markdown 144.5KB 145.0KB +537B 17.4KB 17.4KB 0B
core/MobileNav 51.0KB 51.6KB +557B 10.1KB 10.1KB 0B
core/MobileNavToggle 46.2KB 46.8KB +572B 9.4KB 9.4KB 0B
core/MoreMenu 72.9KB 73.5KB +584B 14.7KB 14.7KB 0B
core/MultiSelector 76.2KB 76.7KB +566B 14.6KB 14.6KB 0B
core/NumberInput 55.7KB 56.2KB +566B 10.7KB 10.7KB 0B
core/Outline 28.6KB 29.2KB +592B 4.0KB 4.0KB 0B
core/Pagination 87.7KB 88.3KB +557B 15.3KB 15.3KB 0B
core/Popover 49.8KB 50.4KB +525B 12.1KB 12.1KB 0B
core/PowerSearch 155.1KB 155.6KB +552B 18.6KB 18.6KB 0B
core/RadioListItem 52.1KB 52.7KB +598B 9.7KB 9.7KB 0B
core/SegmentedControlItem 8.6KB 9.2KB +597B 3.9KB 3.9KB 0B
core/SelectableCard 12.8KB 13.4KB +623B 7.1KB 7.1KB 0B
core/Selector 79.1KB 79.7KB +595B 15.0KB 15.0KB 0B
core/SelectorOption 14.5KB 15.1KB +601B 5.1KB 5.1KB 0B
core/SideNav 58.0KB 58.6KB +587B 10.6KB 10.6KB 0B
core/SideNavCollapseButton 46.6KB 47.2KB +572B 9.5KB 9.5KB 0B
core/SideNavHeading 54.7KB 55.3KB +569B 10.1KB 10.1KB 0B
core/SideNavItem 54.5KB 55.0KB +549B 10.1KB 10.1KB 0B
core/Step 32.4KB 33.0KB +584B 5.3KB 5.3KB 0B
core/Stepper 47.4KB 47.9KB +562B 9.6KB 9.6KB 0B
core/Switch 48.4KB 49.0KB +583B 9.3KB 9.3KB 0B
core/Tab 9.7KB 10.3KB +608B 4.1KB 4.1KB 0B
core/TabMenu 51.6KB 52.2KB +579B 10.0KB 10.0KB 0B
core/Table 84.0KB 84.5KB +530B 15.1KB 15.1KB 0B
core/TableCell 78.8KB 79.3KB +549B 14.8KB 14.8KB 0B
core/TableHeaderCell 78.6KB 79.1KB +554B 14.8KB 14.8KB 0B
core/TableSelectionToolbar 52.4KB 52.9KB +596B 11.2KB 11.2KB 0B
core/TextInput 53.5KB 54.1KB +586B 10.5KB 10.5KB 0B
core/Thumbnail 50.7KB 51.3KB +602B 11.0KB 11.0KB 0B
core/TimeInput 86.8KB 87.4KB +565B 13.8KB 13.8KB 0B
core/Timestamp 27.5KB 27.5KB -1B 9.5KB 9.5KB 0B
core/Toast 59.8KB 60.4KB +581B 9.7KB 9.7KB 0B
core/ToggleButton 44.1KB 44.7KB +565B 9.3KB 9.3KB 0B
core/Token 29.6KB 30.2KB +598B 4.5KB 4.5KB 0B
core/Tokenizer 64.8KB 65.4KB +621B 11.7KB 11.7KB 0B
core/TopNav 51.9KB 52.4KB +553B 10.4KB 10.4KB 0B
core/TopNavHeading 54.2KB 54.7KB +563B 9.9KB 9.9KB 0B
core/TopNavItem 9.0KB 9.6KB +605B 3.8KB 3.8KB 0B
core/TopNavMegaMenu 54.2KB 54.8KB +599B 10.8KB 10.8KB 0B
core/TopNavMegaMenuItem 9.1KB 9.7KB +603B 4.1KB 4.1KB 0B
core/TopNavMenu 53.6KB 54.2KB +583B 10.1KB 10.1KB 0B
core/TreeList 32.5KB 33.1KB +579B 4.7KB 4.7KB 0B
core/Typeahead 61.5KB 62.0KB +581B 11.3KB 11.3KB 0B

Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included.

Bundle Size Summary

Gzip figures measure each package's entry file, not the code an import pulls in.

Package Entry (ESM) Entry gzip before Entry gzip after Delta
@astryxdesign/core 4.9KB 1.2KB 1.2KB 0B
Package stylesheet Gzip before Gzip after Delta
@astryxdesign/core 34.6KB 34.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

55 of 502 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
RichTextEditor Markdown parity: side by side probe dark 558,840
RichTextEditor Markdown parity: side by side probe light 540,756
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
AppShell With Mobile Nav probe light 217,010
AppShell With Mobile Nav probe dark 216,960
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
AppShell Playground neutral dark 65,198
AppShell Playground neutral light 63,788
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232

and 35 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

vjeux and others added 27 commits October 28, 2026 10:49
Both upstream heads are folded onto main 70ea859 (her meta#8045 frame
evidence and meta#8046 coarse press): meta#8446 takes main's harness files, and
meta#8073 carries the press controller onto meta#8046's slots. meta#8076 has no change
of its own in either set of files, so the merge takes theirs with no hand
resolution, and meta#8076 is clean against main again.
# Conflicts:
#	internal/interaction-harness/README.md
#	internal/interaction-harness/src/busy.test.ts
#	internal/interaction-harness/src/busy.ts
#	internal/interaction-harness/src/frames.ts
#	internal/interaction-harness/src/harness.interaction.browser.spec.ts
#	packages/core/src/utils/pressFeedback.ts
…bute

From the review of meta#8076: the README said paintPress in
utils/pressFeedback.ts is the one writer of data-astryx-press, but the
action-group tracker on main (meta#8346) writes its groups' presses itself.
The sentence now says what holds at this head.
meta#8076's new head carries main 70ea859 with meta#8073's writer of the press
attribute on main's press controller, and its README names both writers.
utils/pressFeedback.ts keeps that controller with this line's own changes
on it: the pointer, drag, scroll and visibility listeners through the
shared input stream (meta#8356) and touchcancel only while the primary pointer
is coarse (meta#8270); the key path stays at the window's bubble phase, so a
Space press the page cancels paints nothing. usePressTracker stays in its
own module, one tracker for a component's life (meta#8315), so meta#8073's
rebuilt-tracker hook and its test are not taken. The harness files are
meta#8076's.
…s, and the action-group tracker writes its own

The header and writePress called it the one writer of the press attribute,
but main's action-group tracker writes its groups' presses itself. They now
say what holds, as meta#8076's gestures README does.
…he press attribute

The release note said every press painter writes data-astryx-press
through one internal writer, but the action-group tracker
(hooks/actionGroupTracker.ts) writes its groups' presses itself, as the
gestures README and utils/pressFeedback.ts already say. The note now says
paintPress writes every press it tracks and the action-group tracker
writes its own.
…llowance under every primary pointer

The useMenuPress record's FR9 puts the trigger's held finger under
spec:AST-094 FR29 under every primary pointer (FR43), so a finger on a
touchscreen laptop may drift 13 pt before the open, as on a phone. The
trigger read (pointer: coarse) as its press started and took the long
press's 10 px where the pointer was fine. Three cases fail until it does
not: a 12 pt drift opens under a fine pointer too, a (12, 12) settle
opens there, and nothing reads a pointer query, the trigger's press
included.
…lowance under every primary pointer

The useMenuPress record's FR9 governs the trigger's held finger by
spec:AST-094 FR29 under every primary pointer (FR43). The trigger now
hands the long press FR29's 13 px drift allowance whatever the primary
pointer, so it no longer reads (pointer: coarse) as its press starts, and
the menus drop their coarsePointer import. ContextMenu keeps the long
press's own allowable movement. The changeset says the same.
Strict ESLint reported six unused bindings in files this pull request
carries: the host's HAPTIC_SWITCH_ATTRIBUTE import, two unused imports
in the pan's tests (scrollProbe, ScreenEdgePanGestureRecognizer), the
swipe test's drift, the presented-hit-testing test's gestures, and a
GestureHost test's before, which now asserts what it was read for: a
second finger's moves leave the pan where it was.
…eal angular speed

The release velocity of a rotation whose listener sets rotation = 0 on
each change, at 2 degrees every 16 ms, read 4.363 rad/s against the
2.182 rad/s of the same stream without a re-base: the test asserted only
more than 1.5. It now asserts the 2.18 rad/s (spec:AST-100 FR2), and
fails.
The rotation's velocity tracker samples the raw unwrapped angle, which
setting rotation does not move, so the setter's shift of the samples read
each re-base as extra turn and doubled the release velocity of a
listener that re-bases on every change. The setter no longer touches the
tracker.
…mates while it runs

The proof read the element's animations 230 ms in, after the dip had
ended, and asserted only that every animated key is opacity, which an
empty list passes: with the cross-fade removed from the plan (the move
still landing), the proof still passed. It now reads the keyframe keys
right after the call starts and asserts they include opacity and nothing
else; the same mutant fails it. Chromium and WebKit pass. (F1's in-flight
read from c648034.)
…roller, and its claimed moves are cancelled under pointer events

Two comparisons stop at the shadow boundary, each failing a case:
- once the host's listener on a recognizer's inner node has seen the
  finger, isFingerDownIn reads it as outside a light-DOM scroller around
  that root, so a scroll under it is not the finger's (FR20);
- under inputMode 'pointer-events', a claimed pan on a shadow host
  cancels none of its finger's moves over the inner content, since the
  finger's target is the inner node and its touches reach the host
  retargeted (FR19).
…the flat tree

isFingerDownIn and the pointer-events finger match compare with
containsAlongFlatTree, as the scroll watch already does: a finger on
content inside an open shadow root is down in the scroller around that
root, and its touches, retargeted to the shadow host, match its pointer
finger, so a claimed pan cancels its moves there (spec:AST-094 FR19,
FR20).
…achments asks, and only then

The host let the last attachment decide whether an element is an action
group (useGestureRecognizer always passes the option), and never
recomputed it at a detach: a plain attachment after the group's turned
the group off, and a group's attachment released left a recognizer that
never asked taking presses under a fine pointer. Fails until the host
counts the attachments that ask.
…ents asks

The host counts the attachments that pass actionGroup: true and keeps the
element a group while one remains, recomputed at each detach. An
attachment that passes false, as useGestureRecognizer does by default,
no longer turns a group off, and a group's last asking attachment taking
its leave ends the group.
… that content

The presented hit test takes the document's elementFromPoint, which
answers a shadow host for anything inside its open root, and compares
with Node.contains, which stops at the boundary: a recognizer on a
control inside a moving sheet's shadow root gets no finger, and the tap's
click goes to the host. Fails until the hit test descends into open roots
and compares along the flat tree.
Where a moving element is drawn away from its layout box, the host
hit-tests what is drawn under the finger with the document's
elementFromPoint, which answers a shadow host for anything inside its
open root. The hit test now descends through each open root's own
elementFromPoint and compares with the movers along the flat tree, so a
recognizer on a control inside a moving sheet's shadow root gets its
finger and the tap clicks that control.
…nt lets go

The host's touch-action rules sit in an adopted sheet or a style element
per document or shadow root, and were never removed, so a page whose
last recognizer detached kept them, against spec:AST-094 FR24 (nothing
touch-related remains after the last instance unmounts). Fails until a
root's rules go with its last marked element.
…th its last marked element

The touch-action writer records which elements it marked in each
document or shadow root, and when the last one is unmarked (its last
recognizer detached) it removes that root's adopted sheet or style
element, so nothing touch-related remains after the last instance
unmounts (spec:AST-094 FR24). A later mark writes the rules again; an
element marked in another root first lets go of the old one.
… the inline style it reads

- The motion registry, the host's engine gate and the README name the
  presented hit test as an engine workaround (spec:AST-013 FR6) with its
  review condition (re-measure on each iOS release; remove it once iOS
  WebKit hit-tests a compositor-moved element where it is drawn) and its
  regression fixture.
- While a curve runs the animator holds the value it starts from inline,
  so presentation.ts and the README no longer say the inline style holds
  the end.
…core/internal/touch

Core ships the internal entry @astryxdesign/core/internal/touch, which
re-exports the gesture primitives for Astryx's own packages, and the
Lab-import guard fails a Lab import of core outside core's exports
(architecture:react-component-runtime INV13). The README and the barrel's
header named internal workspace imports and said nothing here is
exported; they now name that entry.
…ill needs the element, and the listeners that cancel

The release note, the stream's header, the host's comment and the README
said the stream is one passive listener per event type and that a
document-capture stopPropagation no longer starves the recognizers. Such a
stop never hid a listener on the same node, and some subscriptions cancel.
They now say what changed: an app's window-capture stopPropagation, or a
document-capture stopImmediatePropagation registered before core, no
longer hides a touch; a recognizer that must claim still needs the touch to
reach its element; the gesture host's touchend, click and contextmenu
cancel while a claimer is attached and the page hold's touchmove while it
holds; and the stream stays ahead of an app's window-capture listener only
until a type's listener is re-added. The README's list of blocking
touchmove listeners gains the claimed touch's target and the document
while a claiming element moves.
…default it moves

The {stylexOptions} form of astryxStylex now passes StyleX
treeshakeCompensation: true unless the caller sets it. spec:AST-017 FR3
asks the release note to name the old and new default and the option
that restores the old one; it now does.
…er and for the two stops the input stream fixes

- A still finger with sub-pixel jitter over a scroll view keeps its tap
  and scrolls nothing (spec:AST-094 FR18–FR22).
- A tap is still recognized under an app's window-capture
  stopPropagation, and under a document-capture
  stopImmediatePropagation registered before core's: the recognizers hear
  touches on the window's capture phase.
Chromium and WebKit pass.
…s once

Where nothing that claims is attached, the host's touchend listener is
passive and cannot cancel the engine's own click after a retargeted tap
clicks what is drawn. The shared click guard swallows that late click
whatever is attached; this case pins it, as asked on meta#8293.
meta#8360 carries this pull request's predecessors and the review fixes of
the foundation it holds, so this pull request's own diff is now its two
commits: useLongPress's doc fix and the unused import dropped from the
UIKit gestures table. The merge is clean.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the long-press change itself is a sound refactor that gives the long-press numbers one source with no behavior change, but this pull request now carries all of the open #8360, so 27,233 authored lines would land under its title.

  • Land #8360 first and bring this branch up to main, or move the two remaining commits (the useLongPress header and the dropped import) into #8360 and close this pull request.
  • Point the description at #8360 rather than the closed #8356, and retitle the pull request for what it holds once #8360 has landed.
  • The carried gesture host still attaches recognizers only under a coarse pointer, which current spec:AST-094 FR19 and FR43 no longer allow; that fix belongs on #8360.

[Automated review]

@vjeux

vjeux commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

The description and title now point at #8360 and say what this pull request holds. The coarse-pointer gate is fixed in #8665, which merges right after #8360.

@vjeux

vjeux commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #8360 under the maintainers' section plan; the commit credits this PR's authors. Closing; the branch stays.

This branch was successfully deployed

1 active deployment
Preview — a1585b35 Deployed Oct 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants