feat(revyl): run one-finger fling and pan as one timed drag

Merged
KA
9h ago
+186-9

Summary

Revyl sessions refused every swipe, gesture fling and gesture pan with
gesture fling is not supported on android (and ios), although the worker's /drag
action already takes duration_ms when its health reports
supports_explicit_drag_duration, and scroll --duration-ms already uses it.

The Revyl plugin now admits performGesturePlan and performDirectionalFlingPlan and sends
a single-pointer plan as one /drag from its first sample to its last over the plan's
durationMs, which is 100 ms for a fling. The planner already keeps every sample inside the
viewport. A worker without timed drags refuses with unsupported-provider-mode instead of
running the gesture at a speed it picks. Multi-touch, gesture drag and held pans stay
refused. The Revyl page and the capability matrix are updated.

Before / after

agent-device swipe 540 1600 540 600 on a Revyl Android session:

  • Base (as reported by a Revyl user): refused with gesture fling is not supported on android
    and the hint Revyl does not expose portable gesture execution.
  • Head: Flung, with backend: "revyl-device-proxy" and durationMs: 100 in --json.

Validation

  • pnpm check:affected --run passed with exactCommit: true (format, lint, typecheck,
    layering, fallow, build, vitest-related, unit, capabilities-matrix, docs-links, docs-prose).
  • Live Revyl Android emulator, on a system notification row: a 300 px horizontal
    gesture pan over 500 ms left the row in place. The same 300 px as gesture fling right
    (100 ms), and as an 80 ms pan, dismissed it.
  • Not run on an iOS simulator.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.