You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1131fb3
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(contracts): additive capability facts on the gesture family (#2460)
* refactor(contracts): make gesture capability facts additive
Additive capability facts on the gesture family (#2443, family 2).
gestureRuntimeOperationFacts took one fact per tier, and it had five: plan,
directionalFling, multiTouch, targetAuthoredDrag, viewport. The tiers split exactly
where an owner's mechanics split — no tier is one every owner serves, and several
owners serve none — so every tier is optional now and `unsupported` names the denial
an omitted tier reports. The type still refuses a call that names no denial at all:
omission is a classified refusal, never an unclassified tier and never an implied
success, and an owner cannot leave the family blank.
An owner states a tier only to say something the family denial does not. Web refuses
every tier with one cell and names only the drag tier whose wording came from a
retired closure. Vega names the two tiers whose refusals came from separate closures.
Limrun's session-less and iOS branches name one denial each, where each wrote five.
The owners that serve gestures keep naming what they serve: the win is the next tier,
which an owner can now ignore entirely.
Fact values are unchanged: every owner's gesture cells are byte-identical, and the
family's own test pins an omitted tier reporting the stated denial verbatim, an
owner that names nothing answering with the exhaustive shape, and the freeze.
* fix(platform-apple): name the gesture family denial by leaf
Review follow-up on the gesture family.
Apple refuses gestures for two reasons depending on the leaf: watchOS and visionOS
have no gesture surface at all, while every other leaf without a touch kind is the
wrong device kind. One constant cannot be truthful for both, and the family denial
is what the first unnamed tier will report, so it now follows the leaf.
The Limrun gesture call collapsed to one source for the session-less branch, so pin
the reason and hint it reports there rather than availability alone, and cover the
directional-fling tier the loop had skipped.
test('a tier the owner never names reports the denial the owner stated for the family, verbatim — omission is a classified refusal, never an unclassified tier and never an implied success',()=>{
67
+
constdenial={
68
+
available: false,
69
+
reason: 'unsupported-device-kind',
70
+
hint: 'Gestures are supported on HarmonyOS emulators and physical devices.',
0 commit comments