Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(gestures): recorded pointer streams for the velocity tracker (AST-100 FR4) (#8481)

Christopher Chedeauc9694089f18d
diff --git a/packages/core/src/gestures/__tests__/VelocityTracker.streams.test.ts b/packages/core/src/gestures/__tests__/VelocityTracker.streams.test.ts
new file mode 100644
index 0000000000..099b40d585
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/VelocityTracker.streams.test.ts
@@ -0,0 +1,243 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file VelocityTracker.streams.test.ts
+ * @input Recorded pointer and touch streams (fixtures/pointer-streams): what
+ * real browsers delivered for a slow drag, a fling and a stop-then-release —
+ * Chromium and Firefox on an Android emulator, Safari on an iOS simulator,
+ * and desktop Chromium's mouse, pen and touch — each with its events'
+ * timestamps and `getCoalescedEvents()` samples, and the injected ground
+ * truth
+ * @output VelocityTracker's release velocity on each, fed one sample per
+ * pointermove as PanGestureRecognizer reads them: within 10% of the
+ * injected speed for the slow drag and the fling (the iOS streams miss it
+ * and are checked for direction only), 0 for the stop-then-release; the
+ * same under a busy main thread that dispatches one event per four input
+ * samples; the touch stream agrees with the pointer stream; a shifted clock
+ * changes nothing (spec:AST-100 FR4)
+ * @position Evidence for the velocity source on real input streams; the
+ * synthetic cases are in VelocityTracker.test.ts. The fixtures' README says
+ * how they were captured and what the rig's input is not.
+ */
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {describe, expect, it} from 'vitest';
+import {VelocityTracker} from '../VelocityTracker';
+
+/** [time ms after the pointerdown, x, y] in CSS px from where it went down. */
+type Sample = readonly [number, number, number];
+type StreamEvent =
+ | readonly [string, number, number, number]
+ | readonly [
+ string,
+ number,
+ number,
+ number,
+ ReadonlyArray<Sample>,
+ number | null,
+ ];
+
+interface Fixture {
+ readonly file: string;
+ readonly schema: 1;
+ readonly platform: string;
+ readonly browser: string;
+ readonly pointerType: 'touch' | 'pen' | 'mouse';
+ readonly gesture: 'slow' | 'fling' | 'stop-release';
+ readonly caveat: string;
+ /** `speed`: px/s along y while the contact moved. */
+ readonly injected: {readonly speed: number};
+ /**
+ * Where the replay releases (the lift, or the last move). Its velocity is
+ * checked against the injected speed, except (`shape`) for a stream that
+ * misses it by more than 10%: only its direction and axis are checked.
+ * `note` says why.
+ */
+ readonly release: {
+ readonly at: 'pointerup' | 'lastMove';
+ readonly check?: 'shape';
+ readonly note?: string;
+ };
+ readonly events: ReadonlyArray<StreamEvent>;
+}
+
+const DIR = path.resolve(__dirname, 'fixtures/pointer-streams');
+const FIXTURES: Fixture[] = fs
+ .readdirSync(DIR)
+ .filter(name => name.endsWith('.json'))
+ .sort()
+ .map(name => ({
+ file: name,
+ ...(JSON.parse(fs.readFileSync(path.join(DIR, name), 'utf8')) as Omit<
+ Fixture,
+ 'file'
+ >),
+ }));
+
+const of = (f: Fixture, type: string) => f.events.filter(e => e[0] === type);
+
+/**
+ * What PanGestureRecognizer feeds its tracker: the touch-down, then each
+ * pointermove event's own position and time, one sample per event (it does
+ * not read `getCoalescedEvents()`).
+ */
+function pointerSamples(f: Fixture): Sample[] {
+ return [...of(f, 'pointerdown').slice(0, 1), ...of(f, 'pointermove')].map(
+ e => [e[1], e[2], e[3]] as const,
+ );
+}
+
+/**
+ * The input the browser received: the touch-down, then each pointermove's
+ * coalesced samples in order, or the event itself when its list is empty.
+ */
+function inputSamples(f: Fixture): Sample[] {
+ const down = of(f, 'pointerdown')[0];
+ const samples: Sample[] = [[down[1], down[2], down[3]]];
+ for (const move of of(f, 'pointermove')) {
+ const coalesced: ReadonlyArray<Sample> =
+ (move.length > 4 ? move[4] : undefined) ?? [];
+ samples.push(
+ ...(coalesced.length > 0
+ ? coalesced
+ : [[move[1], move[2], move[3]] as const]),
+ );
+ }
+ return samples;
+}
+
+/**
+ * What the recognizer reads when the main thread is busy: the browser
+ * dispatches one pointermove per `every` input samples, at the latest of
+ * them, and folds the rest into its coalesced list.
+ */
+function busySamples(f: Fixture, every: number): Sample[] {
+ const input = inputSamples(f);
+ const samples: Sample[] = [input[0]];
+ for (let i = 1; i < input.length; i += every) {
+ samples.push(input[Math.min(i + every - 1, input.length - 1)]);
+ }
+ return samples;
+}
+
+/** The same contact from its touch events: the touchstart, then each touchmove. */
+function touchSamples(f: Fixture): Sample[] {
+ return [...of(f, 'touchstart'), ...of(f, 'touchmove')].map(
+ e => [e[1], e[2], e[3]] as const,
+ );
+}
+
+function releaseTime(
+ f: Fixture,
+ lift: string,
+ moves: ReadonlyArray<Sample>,
+): number {
+ return f.release.at === 'lastMove'
+ ? moves[moves.length - 1][0]
+ : of(f, lift)[0][1];
+}
+
+/** Replays samples through a tracker, on a clock shifted by `shift` ms. */
+function replay(
+ samples: ReadonlyArray<Sample>,
+ release: number,
+ {shift = 0}: {shift?: number} = {},
+) {
+ const tracker = new VelocityTracker();
+ for (const [time, x, y] of samples) {
+ tracker.add(x, y, time + shift);
+ }
+ return {
+ pan: tracker.velocity(release + shift),
+ scroll: tracker.scrollVelocity(release + shift),
+ };
+}
+
+describe('VelocityTracker on recorded pointer streams (spec:AST-100 FR4)', () => {
+ it('has a slow drag, a fling and a stop-then-release for every platform, browser and pointer type', () => {
+ const sources = [
+ 'android-chromium',
+ 'android-firefox',
+ 'ios-safari',
+ 'desktop-chromium-mouse',
+ 'desktop-chromium-pen',
+ 'desktop-chromium-touch',
+ ];
+ expect(FIXTURES.map(f => f.file)).toEqual(
+ sources
+ .flatMap(source =>
+ ['fling', 'slow', 'stop-release'].map(g => `${source}-${g}.json`),
+ )
+ .sort(),
+ );
+ for (const f of FIXTURES) {
+ expect(f.schema).toBe(1);
+ expect(f.caveat).toMatch(/not a finger/);
+ }
+ });
+
+ for (const f of FIXTURES) {
+ describe(`${f.file} (${f.browser}, ${f.pointerType})`, () => {
+ const samples = pointerSamples(f);
+ const release = releaseTime(f, 'pointerup', samples);
+ const pointer = replay(samples, release);
+
+ if (f.gesture === 'stop-release') {
+ it('releases at 0 after holding still', () => {
+ expect(pointer.pan).toEqual({x: 0, y: 0});
+ expect(pointer.scroll).toEqual({x: 0, y: 0});
+ });
+ } else if (f.release.check === 'shape') {
+ it('is not velocity evidence: it releases moving along +y, with x under 10% of y', () => {
+ expect(pointer.pan.y).toBeGreaterThan(0);
+ expect(Math.abs(pointer.pan.x)).toBeLessThanOrEqual(
+ 0.1 * pointer.pan.y,
+ );
+ });
+ } else {
+ it('releases within 10% of the injected speed', () => {
+ const speed = f.injected.speed;
+ expect(Math.abs(pointer.pan.y - speed)).toBeLessThanOrEqual(
+ 0.1 * speed,
+ );
+ expect(Math.abs(pointer.scroll.y - speed)).toBeLessThanOrEqual(
+ 0.1 * speed,
+ );
+ expect(Math.abs(pointer.pan.x)).toBeLessThanOrEqual(0.1 * speed);
+ });
+ }
+
+ const touches = touchSamples(f);
+ if (touches.length > 1) {
+ it('reads the same velocity from the touch stream, within 10%', () => {
+ const touch = replay(touches, releaseTime(f, 'touchend', touches));
+ const scale = Math.max(Math.abs(pointer.pan.y), 1);
+ expect(Math.abs(touch.pan.y - pointer.pan.y)).toBeLessThanOrEqual(
+ 0.1 * scale,
+ );
+ });
+ }
+
+ if (f.release.check !== 'shape') {
+ it('reads the same under a busy main thread: one event per four input samples', () => {
+ const busy = replay(busySamples(f, 4), release);
+ if (f.gesture === 'stop-release') {
+ expect(busy.pan).toEqual({x: 0, y: 0});
+ } else {
+ const speed = f.injected.speed;
+ expect(Math.abs(busy.pan.y - speed)).toBeLessThanOrEqual(
+ 0.1 * speed,
+ );
+ }
+ });
+ }
+
+ it('reads each event’s own time: a shifted clock changes nothing', () => {
+ const shifted = replay(samples, release, {shift: 123_456.789});
+ expect(shifted.pan.x).toBeCloseTo(pointer.pan.x, 6);
+ expect(shifted.pan.y).toBeCloseTo(pointer.pan.y, 6);
+ });
+ });
+ }
+});
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/README.md b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/README.md
new file mode 100644
index 0000000000..e4929c0692
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/README.md
@@ -0,0 +1,82 @@
+# Pointer streams
+
+What real browsers delivered for one moving contact, as the page saw it.
+`VelocityTracker.streams.test.ts` replays them (spec:AST-100 FR4).
+
+| Files | Browser | Pointer | Input |
+| -------------------------------------- | ---------------------------------------------------- | ----------------- | ------------------------------------------------------------- |
+| `android-chromium-*` | Chromium 158 on an Android 15 emulator | touch | 120 Hz through a uinput touchscreen |
+| `android-firefox-*` | Firefox 158 on the same emulator | touch | the same |
+| `ios-safari-*` | Safari 26.2 on an iOS 26.2 simulator (iPhone 17 Pro) | touch | HID through idb, about one move every 30 ms |
+| `desktop-chromium-{mouse,pen,touch}-*` | headless Chromium 149 | mouse, pen, touch | CDP input at 120 Hz, each event stamped at its scheduled time |
+
+Each source has three gestures:
+
+- `slow`: 200 px down at 200 px/s, lifted while moving;
+- `fling`: 300 px down at 2,000 px/s, lifted while moving;
+- `stop-release`: 200 px in 400 ms, then still for 300 ms (longer than the
+ 40 ms stillness interval), then lifted.
+
+On iOS the simulator paces the moves itself, so its recordings differ: Safari
+delivered 194 px at 183.5 px/s for the slow drag, 240 px at 2,400 px/s for the
+fling, and the stop-then-release's moves over about 2.2 s before its still
+300 ms. Each fixture's `injected.speed` is what Safari delivered.
+
+## Format (schema 1)
+
+- `events`: `[type, t, x, y]` for each pointer and touch event, with `t` in ms
+ after the pointerdown's `timeStamp` and `x`, `y` in CSS px from where the
+ contact went down. A `pointermove` adds its `getCoalescedEvents()` samples
+ (`[t, x, y]` each) and its `getPredictedEvents()` count.
+- `injected`: the ground truth. `speed` is px/s along y while the contact
+ moved; a source injected at a set rate also has its `hz` and `points`.
+- `release`: where the replay releases (`pointerup`, or `lastMove` with a
+ `note` saying why) and, for a stream whose release misses the injected
+ speed by more than 10%, `check: "shape"`: it is not velocity evidence, and
+ only its direction and axis are checked.
+- `caveat`: what the input is not (below).
+
+## Caveat
+
+Rig input is synthetic, not a finger: Android injects at 120 Hz through a
+uinput touchscreen and desktop through CDP, each through the browser's real
+input pipeline; iOS input is HID through idb on a leased simulator, which
+delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance
+Safari delivered between the first and last moving pointermove, over that time.
+A physical finger's 120–240 Hz jittered sampling is not reproduced.
+
+## What the replay feeds
+
+Each `pointermove` event's own position and time, one sample per event, as
+`PanGestureRecognizer` reads them (it does not read `getCoalescedEvents()`).
+The coalesced samples are the input the browser received: the replay also
+models a busy main thread from them, one event per four input samples at the
+latest of them, as a browser coalesces input while its handlers run late.
+
+## What the streams show
+
+- Chromium on Android coalesces one to three samples into each `pointermove`
+ at 120 Hz input; Firefox dispatches about 60 a second, each with a one-entry
+ coalesced list.
+- For CDP-dispatched input, desktop Chromium returns an empty
+ `getCoalescedEvents()` list, so the busy-thread replay uses the events
+ themselves.
+- Safari on the simulator merged two moves that arrived in one frame into a
+ single `pointermove` whose coalesced list had one entry (one 120 px step).
+- idb lifts 58–85 ms after the last move, longer than the stillness interval,
+ so the iOS slow drag and fling release at their last move. The simulator
+ delivers their steps 29–44 ms apart, and against the speed Safari delivered
+ each misses 10% on one of its two releases: the slow
+ drag's pan reads 22.9% under (its scroll 2.3% over), the fling's scroll
+ 12.2% under (its pan 7.2% under, from six samples). Neither is velocity
+ evidence; both are checked for direction and axis only.
+- iOS input at 120 Hz would need XCTest's own event synthesis
+ (`press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)`), which
+ these streams do not use.
+
+## Capturing a stream
+
+`capture.html` records one contact: open it in the browser, drive one gesture
+over it, and read the record from `window.__streams` (or have the page post
+it with `?post=probe` or `?post=beacon`). A fixture is that record plus the
+injected ground truth and the fields above.
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-fling.json
new file mode 100644
index 0000000000..76f4bad056
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-fling.json
@@ -0,0 +1,130 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Chromium 158.0.8123.0",
+ "ua": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Mobile Safari/537.36",
+ "dpr": 1.75,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 2000,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 16.677],
+ [16.667, 0, 33.354],
+ [25, 0, 50.032],
+ [33.333, 0, 66.709],
+ [41.667, 0, 83.386],
+ [50, 0, 100.063],
+ [58.333, 0, 116.741],
+ [66.667, 0, 133.418],
+ [75, 0, 150.095],
+ [83.333, 0, 166.772],
+ [91.667, 0, 183.45],
+ [100, 0, 200.127],
+ [108.333, 0, 216.804],
+ [116.667, 0, 233.481],
+ [125, 0, 250.159],
+ [133.333, 0, 266.836],
+ [141.667, 0, 283.513],
+ [150, 0, 300.19]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 0, 0, 16.685, [[0, 0, 16.685]], 0],
+ ["touchmove", 0, 0, 16.685],
+ ["pointermove", 4.5, 0, 33.343, [[4.5, 0, 33.343]], 0],
+ ["touchmove", 4.5, 0, 33.343],
+ [
+ "pointermove",
+ 21.3,
+ 0,
+ 66.713,
+ [
+ [13.1, 0, 50.028],
+ [21.3, 0, 66.713]
+ ],
+ 3
+ ],
+ ["touchmove", 21.3, 0, 66.713],
+ [
+ "pointermove",
+ 38,
+ 0,
+ 100.056,
+ [
+ [29.9, 0, 83.398],
+ [38, 0, 100.056]
+ ],
+ 3
+ ],
+ ["touchmove", 38, 0, 100.056],
+ ["pointermove", 46.5, 0, 116.741, [[46.5, 0, 116.741]], 3],
+ ["touchmove", 46.5, 0, 116.741],
+ [
+ "pointermove",
+ 71.6,
+ 0,
+ 166.769,
+ [
+ [55, 0, 133.426],
+ [63.5, 0, 150.112],
+ [71.6, 0, 166.769]
+ ],
+ 3
+ ],
+ ["touchmove", 71.6, 0, 166.769],
+ [
+ "pointermove",
+ 88.4,
+ 0,
+ 200.139,
+ [
+ [80.1, 0, 183.454],
+ [88.4, 0, 200.139]
+ ],
+ 3
+ ],
+ ["touchmove", 88.4, 0, 200.139],
+ [
+ "pointermove",
+ 104.9,
+ 0,
+ 233.482,
+ [
+ [96.6, 0, 216.797],
+ [104.9, 0, 233.482]
+ ],
+ 3
+ ],
+ ["touchmove", 104.9, 0, 233.482],
+ ["pointermove", 113.2, 0, 250.167, [[113.2, 0, 250.167]], 3],
+ ["touchmove", 113.2, 0, 250.167],
+ [
+ "pointermove",
+ 138.4,
+ 0,
+ 300.195,
+ [
+ [121.8, 0, 266.853],
+ [130, 0, 283.51],
+ [138.4, 0, 300.195]
+ ],
+ 3
+ ],
+ ["touchmove", 138.4, 0, 300.195],
+ ["pointerup", 138.4, 0, 300.195],
+ ["touchend", 138.4, 0, 300.195]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-slow.json
new file mode 100644
index 0000000000..6677602ff1
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-slow.json
@@ -0,0 +1,860 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Chromium 158.0.8123.0",
+ "ua": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Mobile Safari/537.36",
+ "dpr": 1.75,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 200,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 1.667],
+ [16.667, 0, 3.333],
+ [25, 0, 5],
+ [33.333, 0, 6.667],
+ [41.667, 0, 8.333],
+ [50, 0, 10],
+ [58.333, 0, 11.667],
+ [66.667, 0, 13.333],
+ [75, 0, 15],
+ [83.333, 0, 16.667],
+ [91.667, 0, 18.333],
+ [100, 0, 20],
+ [108.333, 0, 21.667],
+ [116.667, 0, 23.333],
+ [125, 0, 25],
+ [133.333, 0, 26.667],
+ [141.667, 0, 28.333],
+ [150, 0, 30],
+ [158.333, 0, 31.667],
+ [166.667, 0, 33.333],
+ [175, 0, 35],
+ [183.333, 0, 36.667],
+ [191.667, 0, 38.333],
+ [200, 0, 40],
+ [208.333, 0, 41.667],
+ [216.667, 0, 43.333],
+ [225, 0, 45],
+ [233.333, 0, 46.667],
+ [241.667, 0, 48.333],
+ [250, 0, 50],
+ [258.333, 0, 51.667],
+ [266.667, 0, 53.333],
+ [275, 0, 55],
+ [283.333, 0, 56.667],
+ [291.667, 0, 58.333],
+ [300, 0, 60],
+ [308.333, 0, 61.667],
+ [316.667, 0, 63.333],
+ [325, 0, 65],
+ [333.333, 0, 66.667],
+ [341.667, 0, 68.333],
+ [350, 0, 70],
+ [358.333, 0, 71.667],
+ [366.667, 0, 73.333],
+ [375, 0, 75],
+ [383.333, 0, 76.667],
+ [391.667, 0, 78.333],
+ [400, 0, 80],
+ [408.333, 0, 81.667],
+ [416.667, 0, 83.333],
+ [425, 0, 85],
+ [433.333, 0, 86.667],
+ [441.667, 0, 88.333],
+ [450, 0, 90],
+ [458.333, 0, 91.667],
+ [466.667, 0, 93.333],
+ [475, 0, 95],
+ [483.333, 0, 96.667],
+ [491.667, 0, 98.333],
+ [500, 0, 100],
+ [508.333, 0, 101.667],
+ [516.667, 0, 103.333],
+ [525, 0, 105],
+ [533.333, 0, 106.667],
+ [541.667, 0, 108.333],
+ [550, 0, 110],
+ [558.333, 0, 111.667],
+ [566.667, 0, 113.333],
+ [575, 0, 115],
+ [583.333, 0, 116.667],
+ [591.667, 0, 118.333],
+ [600, 0, 120],
+ [608.333, 0, 121.667],
+ [616.667, 0, 123.333],
+ [625, 0, 125],
+ [633.333, 0, 126.667],
+ [641.667, 0, 128.333],
+ [650, 0, 130],
+ [658.333, 0, 131.667],
+ [666.667, 0, 133.333],
+ [675, 0, 135],
+ [683.333, 0, 136.667],
+ [691.667, 0, 138.333],
+ [700, 0, 140],
+ [708.333, 0, 141.667],
+ [716.667, 0, 143.333],
+ [725, 0, 145],
+ [733.333, 0, 146.667],
+ [741.667, 0, 148.333],
+ [750, 0, 150],
+ [758.333, 0, 151.667],
+ [766.667, 0, 153.333],
+ [775, 0, 155],
+ [783.333, 0, 156.667],
+ [791.667, 0, 158.333],
+ [800, 0, 160],
+ [808.333, 0, 161.667],
+ [816.667, 0, 163.333],
+ [825, 0, 165],
+ [833.333, 0, 166.667],
+ [841.667, 0, 168.333],
+ [850, 0, 170],
+ [858.333, 0, 171.667],
+ [866.667, 0, 173.333],
+ [875, 0, 175],
+ [883.333, 0, 176.667],
+ [891.667, 0, 178.333],
+ [900, 0, 180],
+ [908.333, 0, 181.667],
+ [916.667, 0, 183.333],
+ [925, 0, 185],
+ [933.333, 0, 186.667],
+ [941.667, 0, 188.333],
+ [950, 0, 190],
+ [958.333, 0, 191.667],
+ [966.667, 0, 193.333],
+ [975, 0, 195],
+ [983.333, 0, 196.667],
+ [991.667, 0, 198.333],
+ [1000, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0.1,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 0.1, 0, 1.674, [[0.1, 0, 1.674]], 0],
+ [
+ "pointermove",
+ 12.1,
+ 0,
+ 4.994,
+ [
+ [3.7, 0, 3.348],
+ [12.1, 0, 4.994]
+ ],
+ 0
+ ],
+ [
+ "pointermove",
+ 29.1,
+ 0,
+ 8.343,
+ [
+ [20.5, 0, 6.668],
+ [29.1, 0, 8.343]
+ ],
+ 3
+ ],
+ ["touchmove", 29.1, 0, 8.343],
+ [
+ "pointermove",
+ 46,
+ 0,
+ 11.663,
+ [
+ [37.6, 0, 10.017],
+ [46, 0, 11.663]
+ ],
+ 3
+ ],
+ ["touchmove", 46, 0, 11.663],
+ [
+ "pointermove",
+ 62.6,
+ 0,
+ 15.011,
+ [
+ [54.1, 0, 13.337],
+ [62.6, 0, 15.011]
+ ],
+ 3
+ ],
+ ["touchmove", 62.6, 0, 15.011],
+ [
+ "pointermove",
+ 79,
+ 0,
+ 18.359,
+ [
+ [70.5, 0, 16.685],
+ [79, 0, 18.359]
+ ],
+ 3
+ ],
+ ["touchmove", 79, 0, 18.359],
+ [
+ "pointermove",
+ 95.5,
+ 0,
+ 21.68,
+ [
+ [87.3, 0, 20.006],
+ [95.5, 0, 21.68]
+ ],
+ 3
+ ],
+ ["touchmove", 95.5, 0, 21.68],
+ [
+ "pointermove",
+ 112.6,
+ 0,
+ 25.028,
+ [
+ [103.9, 0, 23.354],
+ [112.6, 0, 25.028]
+ ],
+ 3
+ ],
+ ["touchmove", 112.6, 0, 25.028],
+ [
+ "pointermove",
+ 129,
+ 0,
+ 28.348,
+ [
+ [120.6, 0, 26.674],
+ [129, 0, 28.348]
+ ],
+ 3
+ ],
+ ["touchmove", 129, 0, 28.348],
+ [
+ "pointermove",
+ 145.7,
+ 0,
+ 31.696,
+ [
+ [137.4, 0, 30.022],
+ [145.7, 0, 31.696]
+ ],
+ 3
+ ],
+ ["touchmove", 145.7, 0, 31.696],
+ [
+ "pointermove",
+ 162.5,
+ 0,
+ 35.017,
+ [
+ [154.3, 0, 33.37],
+ [162.5, 0, 35.017]
+ ],
+ 3
+ ],
+ ["touchmove", 162.5, 0, 35.017],
+ [
+ "pointermove",
+ 179,
+ 0,
+ 38.365,
+ [
+ [170.9, 0, 36.691],
+ [179, 0, 38.365]
+ ],
+ 3
+ ],
+ ["touchmove", 179, 0, 38.365],
+ [
+ "pointermove",
+ 196,
+ 0,
+ 41.685,
+ [
+ [187.4, 0, 40.039],
+ [196, 0, 41.685]
+ ],
+ 3
+ ],
+ ["touchmove", 196, 0, 41.685],
+ [
+ "pointermove",
+ 212.4,
+ 0,
+ 45.033,
+ [
+ [204.2, 0, 43.359],
+ [212.4, 0, 45.033]
+ ],
+ 3
+ ],
+ ["touchmove", 212.4, 0, 45.033],
+ [
+ "pointermove",
+ 229.1,
+ 0,
+ 48.354,
+ [
+ [220.6, 0, 46.708],
+ [229.1, 0, 48.354]
+ ],
+ 3
+ ],
+ ["touchmove", 229.1, 0, 48.354],
+ [
+ "pointermove",
+ 245.6,
+ 0,
+ 51.702,
+ [
+ [237.2, 0, 50.028],
+ [245.6, 0, 51.702]
+ ],
+ 3
+ ],
+ ["touchmove", 245.6, 0, 51.702],
+ [
+ "pointermove",
+ 262.4,
+ 0,
+ 55.05,
+ [
+ [254.1, 0, 53.376],
+ [262.4, 0, 55.05]
+ ],
+ 3
+ ],
+ ["touchmove", 262.4, 0, 55.05],
+ [
+ "pointermove",
+ 279.1,
+ 0,
+ 58.37,
+ [
+ [270.7, 0, 56.696],
+ [279.1, 0, 58.37]
+ ],
+ 3
+ ],
+ ["touchmove", 279.1, 0, 58.37],
+ [
+ "pointermove",
+ 295.9,
+ 0,
+ 61.719,
+ [
+ [287.4, 0, 60.045],
+ [295.9, 0, 61.719]
+ ],
+ 3
+ ],
+ ["touchmove", 295.9, 0, 61.719],
+ [
+ "pointermove",
+ 312.3,
+ 0,
+ 65.039,
+ [
+ [303.8, 0, 63.365],
+ [312.3, 0, 65.039]
+ ],
+ 3
+ ],
+ ["touchmove", 312.3, 0, 65.039],
+ [
+ "pointermove",
+ 329,
+ 0,
+ 68.387,
+ [
+ [320.6, 0, 66.713],
+ [329, 0, 68.387]
+ ],
+ 3
+ ],
+ ["touchmove", 329, 0, 68.387],
+ [
+ "pointermove",
+ 345.7,
+ 0,
+ 71.708,
+ [
+ [337.4, 0, 70.061],
+ [345.7, 0, 71.708]
+ ],
+ 3
+ ],
+ ["touchmove", 345.7, 0, 71.708],
+ [
+ "pointermove",
+ 362.4,
+ 0,
+ 75.056,
+ [
+ [354, 0, 73.382],
+ [362.4, 0, 75.056]
+ ],
+ 3
+ ],
+ ["touchmove", 362.4, 0, 75.056],
+ [
+ "pointermove",
+ 379.4,
+ 0,
+ 78.376,
+ [
+ [370.9, 0, 76.73],
+ [379.4, 0, 78.376]
+ ],
+ 3
+ ],
+ ["touchmove", 379.4, 0, 78.376],
+ [
+ "pointermove",
+ 395.8,
+ 0,
+ 81.724,
+ [
+ [387.5, 0, 80.05],
+ [395.8, 0, 81.724]
+ ],
+ 3
+ ],
+ ["touchmove", 395.8, 0, 81.724],
+ [
+ "pointermove",
+ 412.5,
+ 0,
+ 85.073,
+ [
+ [404, 0, 83.398],
+ [412.5, 0, 85.073]
+ ],
+ 3
+ ],
+ ["touchmove", 412.5, 0, 85.073],
+ [
+ "pointermove",
+ 429.2,
+ 0,
+ 88.393,
+ [
+ [420.7, 0, 86.719],
+ [429.2, 0, 88.393]
+ ],
+ 3
+ ],
+ ["touchmove", 429.2, 0, 88.393],
+ [
+ "pointermove",
+ 445.7,
+ 0,
+ 91.741,
+ [
+ [437.4, 0, 90.067],
+ [445.7, 0, 91.741]
+ ],
+ 3
+ ],
+ ["touchmove", 445.7, 0, 91.741],
+ [
+ "pointermove",
+ 462.4,
+ 0,
+ 95.061,
+ [
+ [454, 0, 93.387],
+ [462.4, 0, 95.061]
+ ],
+ 3
+ ],
+ ["touchmove", 462.4, 0, 95.061],
+ [
+ "pointermove",
+ 479.3,
+ 0,
+ 98.41,
+ [
+ [470.8, 0, 96.735],
+ [479.3, 0, 98.41]
+ ],
+ 3
+ ],
+ ["touchmove", 479.3, 0, 98.41],
+ [
+ "pointermove",
+ 495.5,
+ 0,
+ 101.73,
+ [
+ [487.4, 0, 100.084],
+ [495.5, 0, 101.73]
+ ],
+ 3
+ ],
+ ["touchmove", 495.5, 0, 101.73],
+ [
+ "pointermove",
+ 512.5,
+ 0,
+ 105.078,
+ [
+ [504, 0, 103.404],
+ [512.5, 0, 105.078]
+ ],
+ 3
+ ],
+ ["touchmove", 512.5, 0, 105.078],
+ [
+ "pointermove",
+ 529.3,
+ 0,
+ 108.398,
+ [
+ [520.7, 0, 106.752],
+ [529.3, 0, 108.398]
+ ],
+ 3
+ ],
+ ["touchmove", 529.3, 0, 108.398],
+ [
+ "pointermove",
+ 546.6,
+ 0,
+ 111.747,
+ [
+ [537.4, 0, 110.073],
+ [546.6, 0, 111.747]
+ ],
+ 3
+ ],
+ ["touchmove", 546.6, 0, 111.747],
+ [
+ "pointermove",
+ 562.3,
+ 0,
+ 115.067,
+ [
+ [554, 0, 113.421],
+ [562.3, 0, 115.067]
+ ],
+ 3
+ ],
+ ["touchmove", 562.3, 0, 115.067],
+ [
+ "pointermove",
+ 579,
+ 0,
+ 118.415,
+ [
+ [570.7, 0, 116.741],
+ [579, 0, 118.415]
+ ],
+ 3
+ ],
+ ["touchmove", 579, 0, 118.415],
+ [
+ "pointermove",
+ 596.1,
+ 0,
+ 121.763,
+ [
+ [587.3, 0, 120.089],
+ [596.1, 0, 121.763]
+ ],
+ 3
+ ],
+ ["touchmove", 596.1, 0, 121.763],
+ [
+ "pointermove",
+ 612.3,
+ 0,
+ 125.084,
+ [
+ [604, 0, 123.41],
+ [612.3, 0, 125.084]
+ ],
+ 3
+ ],
+ ["touchmove", 612.3, 0, 125.084],
+ [
+ "pointermove",
+ 629.2,
+ 0,
+ 128.432,
+ [
+ [620.6, 0, 126.758],
+ [629.2, 0, 128.432]
+ ],
+ 3
+ ],
+ ["touchmove", 629.2, 0, 128.432],
+ [
+ "pointermove",
+ 645.9,
+ 0,
+ 131.752,
+ [
+ [637.5, 0, 130.078],
+ [645.9, 0, 131.752]
+ ],
+ 3
+ ],
+ ["touchmove", 645.9, 0, 131.752],
+ [
+ "pointermove",
+ 662.3,
+ 0,
+ 135.1,
+ [
+ [654.1, 0, 133.426],
+ [662.3, 0, 135.1]
+ ],
+ 3
+ ],
+ ["touchmove", 662.3, 0, 135.1],
+ [
+ "pointermove",
+ 679,
+ 0,
+ 138.421,
+ [
+ [670.5, 0, 136.775],
+ [679, 0, 138.421]
+ ],
+ 3
+ ],
+ ["touchmove", 679, 0, 138.421],
+ [
+ "pointermove",
+ 695.7,
+ 0,
+ 141.769,
+ [
+ [687.4, 0, 140.095],
+ [695.7, 0, 141.769]
+ ],
+ 3
+ ],
+ ["touchmove", 695.7, 0, 141.769],
+ [
+ "pointermove",
+ 712.8,
+ 0,
+ 145.089,
+ [
+ [704.2, 0, 143.443],
+ [712.8, 0, 145.089]
+ ],
+ 3
+ ],
+ ["touchmove", 712.8, 0, 145.089],
+ [
+ "pointermove",
+ 728.9,
+ 0,
+ 148.438,
+ [
+ [720.7, 0, 146.763],
+ [728.9, 0, 148.438]
+ ],
+ 3
+ ],
+ ["touchmove", 728.9, 0, 148.438],
+ [
+ "pointermove",
+ 746,
+ 0,
+ 151.786,
+ [
+ [737.3, 0, 150.112],
+ [746, 0, 151.786]
+ ],
+ 3
+ ],
+ ["touchmove", 746, 0, 151.786],
+ [
+ "pointermove",
+ 762.4,
+ 0,
+ 155.106,
+ [
+ [754.2, 0, 153.432],
+ [762.4, 0, 155.106]
+ ],
+ 3
+ ],
+ ["touchmove", 762.4, 0, 155.106],
+ [
+ "pointermove",
+ 779,
+ 0,
+ 158.454,
+ [
+ [770.9, 0, 156.78],
+ [779, 0, 158.454]
+ ],
+ 3
+ ],
+ ["touchmove", 779, 0, 158.454],
+ [
+ "pointermove",
+ 795.4,
+ 0,
+ 161.775,
+ [
+ [787.2, 0, 160.1],
+ [795.4, 0, 161.775]
+ ],
+ 3
+ ],
+ ["touchmove", 795.4, 0, 161.775],
+ [
+ "pointermove",
+ 812.5,
+ 0,
+ 165.123,
+ [
+ [803.9, 0, 163.449],
+ [812.5, 0, 165.123]
+ ],
+ 3
+ ],
+ ["touchmove", 812.5, 0, 165.123],
+ [
+ "pointermove",
+ 829.2,
+ 0,
+ 168.443,
+ [
+ [820.7, 0, 166.797],
+ [829.2, 0, 168.443]
+ ],
+ 3
+ ],
+ ["touchmove", 829.2, 0, 168.443],
+ [
+ "pointermove",
+ 846,
+ 0,
+ 171.791,
+ [
+ [837.2, 0, 170.117],
+ [846, 0, 171.791]
+ ],
+ 3
+ ],
+ ["touchmove", 846, 0, 171.791],
+ [
+ "pointermove",
+ 862.4,
+ 0,
+ 175.112,
+ [
+ [854.1, 0, 173.465],
+ [862.4, 0, 175.112]
+ ],
+ 3
+ ],
+ ["touchmove", 862.4, 0, 175.112],
+ [
+ "pointermove",
+ 879.1,
+ 0,
+ 178.46,
+ [
+ [870.6, 0, 176.786],
+ [879.1, 0, 178.46]
+ ],
+ 3
+ ],
+ ["touchmove", 879.1, 0, 178.46],
+ [
+ "pointermove",
+ 895.7,
+ 0,
+ 181.78,
+ [
+ [887.6, 0, 180.134],
+ [895.7, 0, 181.78]
+ ],
+ 3
+ ],
+ ["touchmove", 895.7, 0, 181.78],
+ [
+ "pointermove",
+ 912.6,
+ 0,
+ 185.128,
+ [
+ [904.2, 0, 183.454],
+ [912.6, 0, 185.128]
+ ],
+ 3
+ ],
+ ["touchmove", 912.6, 0, 185.128],
+ [
+ "pointermove",
+ 929.1,
+ 0,
+ 188.477,
+ [
+ [920.9, 0, 186.802],
+ [929.1, 0, 188.477]
+ ],
+ 3
+ ],
+ ["touchmove", 929.1, 0, 188.477],
+ [
+ "pointermove",
+ 945.7,
+ 0,
+ 191.797,
+ [
+ [937.9, 0, 190.123],
+ [945.7, 0, 191.797]
+ ],
+ 3
+ ],
+ ["touchmove", 945.7, 0, 191.797],
+ [
+ "pointermove",
+ 962.4,
+ 0,
+ 195.145,
+ [
+ [954.2, 0, 193.471],
+ [962.4, 0, 195.145]
+ ],
+ 3
+ ],
+ ["touchmove", 962.4, 0, 195.145],
+ [
+ "pointermove",
+ 978.9,
+ 0,
+ 198.465,
+ [
+ [970.8, 0, 196.791],
+ [978.9, 0, 198.465]
+ ],
+ 3
+ ],
+ ["touchmove", 978.9, 0, 198.465],
+ ["pointermove", 987.2, 0, 200.139, [[987.2, 0, 200.139]], 3],
+ ["touchmove", 987.2, 0, 200.139],
+ ["pointerup", 987.3, 0, 200.139],
+ ["touchend", 987.3, 0, 200.139]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-stop-release.json
new file mode 100644
index 0000000000..2435847e2a
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-chromium-stop-release.json
@@ -0,0 +1,357 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Chromium 158.0.8123.0",
+ "ua": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Mobile Safari/537.36",
+ "dpr": 1.75,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 500,
+ "restMs": 300,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 4.167],
+ [16.667, 0, 8.333],
+ [25, 0, 12.5],
+ [33.333, 0, 16.667],
+ [41.667, 0, 20.833],
+ [50, 0, 25],
+ [58.333, 0, 29.167],
+ [66.667, 0, 33.333],
+ [75, 0, 37.5],
+ [83.333, 0, 41.667],
+ [91.667, 0, 45.833],
+ [100, 0, 50],
+ [108.333, 0, 54.167],
+ [116.667, 0, 58.333],
+ [125, 0, 62.5],
+ [133.333, 0, 66.667],
+ [141.667, 0, 70.833],
+ [150, 0, 75],
+ [158.333, 0, 79.167],
+ [166.667, 0, 83.333],
+ [175, 0, 87.5],
+ [183.333, 0, 91.667],
+ [191.667, 0, 95.833],
+ [200, 0, 100],
+ [208.333, 0, 104.167],
+ [216.667, 0, 108.333],
+ [225, 0, 112.5],
+ [233.333, 0, 116.667],
+ [241.667, 0, 120.833],
+ [250, 0, 125],
+ [258.333, 0, 129.167],
+ [266.667, 0, 133.333],
+ [275, 0, 137.5],
+ [283.333, 0, 141.667],
+ [291.667, 0, 145.833],
+ [300, 0, 150],
+ [308.333, 0, 154.167],
+ [316.667, 0, 158.333],
+ [325, 0, 162.5],
+ [333.333, 0, 166.667],
+ [341.667, 0, 170.833],
+ [350, 0, 175],
+ [358.333, 0, 179.167],
+ [366.667, 0, 183.333],
+ [375, 0, 187.5],
+ [383.333, 0, 191.667],
+ [391.667, 0, 195.833],
+ [400, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 300.7,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 0.1, 0, 4.157, [[0.1, 0, 4.157]], 0],
+ ["pointermove", 4.6, 0, 8.343, [[4.6, 0, 8.343]], 0],
+ ["touchmove", 4.6, 0, 8.343],
+ [
+ "pointermove",
+ 21.4,
+ 0,
+ 16.685,
+ [
+ [12.9, 0, 12.5],
+ [21.4, 0, 16.685]
+ ],
+ 3
+ ],
+ ["touchmove", 21.4, 0, 16.685],
+ [
+ "pointermove",
+ 37.9,
+ 0,
+ 25.028,
+ [
+ [29.7, 0, 20.843],
+ [37.9, 0, 25.028]
+ ],
+ 3
+ ],
+ ["touchmove", 37.9, 0, 25.028],
+ [
+ "pointermove",
+ 54.6,
+ 0,
+ 33.37,
+ [
+ [46.4, 0, 29.185],
+ [54.6, 0, 33.37]
+ ],
+ 3
+ ],
+ ["touchmove", 54.6, 0, 33.37],
+ [
+ "pointermove",
+ 71.5,
+ 0,
+ 41.685,
+ [
+ [62.9, 0, 37.528],
+ [71.5, 0, 41.685]
+ ],
+ 3
+ ],
+ ["touchmove", 71.5, 0, 41.685],
+ [
+ "pointermove",
+ 88.1,
+ 0,
+ 50.028,
+ [
+ [79.7, 0, 45.87],
+ [88.1, 0, 50.028]
+ ],
+ 3
+ ],
+ ["touchmove", 88.1, 0, 50.028],
+ [
+ "pointermove",
+ 104.6,
+ 0,
+ 58.37,
+ [
+ [96.3, 0, 54.213],
+ [104.6, 0, 58.37]
+ ],
+ 3
+ ],
+ ["touchmove", 104.6, 0, 58.37],
+ [
+ "pointermove",
+ 121.8,
+ 0,
+ 66.713,
+ [
+ [113.7, 0, 62.556],
+ [121.8, 0, 66.713]
+ ],
+ 3
+ ],
+ ["touchmove", 121.8, 0, 66.713],
+ [
+ "pointermove",
+ 138.3,
+ 0,
+ 75.056,
+ [
+ [129.8, 0, 70.87],
+ [138.3, 0, 75.056]
+ ],
+ 3
+ ],
+ ["touchmove", 138.3, 0, 75.056],
+ [
+ "pointermove",
+ 154.9,
+ 0,
+ 83.398,
+ [
+ [146.4, 0, 79.213],
+ [154.9, 0, 83.398]
+ ],
+ 3
+ ],
+ ["touchmove", 154.9, 0, 83.398],
+ [
+ "pointermove",
+ 171.4,
+ 0,
+ 91.741,
+ [
+ [163.1, 0, 87.556],
+ [171.4, 0, 91.741]
+ ],
+ 3
+ ],
+ ["touchmove", 171.4, 0, 91.741],
+ [
+ "pointermove",
+ 188.2,
+ 0,
+ 100.084,
+ [
+ [179.9, 0, 95.898],
+ [188.2, 0, 100.084]
+ ],
+ 3
+ ],
+ ["touchmove", 188.2, 0, 100.084],
+ [
+ "pointermove",
+ 204.8,
+ 0,
+ 108.398,
+ [
+ [196.4, 0, 104.241],
+ [204.8, 0, 108.398]
+ ],
+ 3
+ ],
+ ["touchmove", 204.8, 0, 108.398],
+ [
+ "pointermove",
+ 221.4,
+ 0,
+ 116.741,
+ [
+ [213.1, 0, 112.584],
+ [221.4, 0, 116.741]
+ ],
+ 3
+ ],
+ ["touchmove", 221.4, 0, 116.741],
+ [
+ "pointermove",
+ 238.1,
+ 0,
+ 125.084,
+ [
+ [229.9, 0, 120.926],
+ [238.1, 0, 125.084]
+ ],
+ 3
+ ],
+ ["touchmove", 238.1, 0, 125.084],
+ [
+ "pointermove",
+ 254.9,
+ 0,
+ 133.426,
+ [
+ [246.5, 0, 129.269],
+ [254.9, 0, 133.426]
+ ],
+ 3
+ ],
+ ["touchmove", 254.9, 0, 133.426],
+ [
+ "pointermove",
+ 271.5,
+ 0,
+ 141.769,
+ [
+ [263.3, 0, 137.584],
+ [271.5, 0, 141.769]
+ ],
+ 3
+ ],
+ ["touchmove", 271.5, 0, 141.769],
+ [
+ "pointermove",
+ 289.1,
+ 0,
+ 150.112,
+ [
+ [279.7, 0, 145.926],
+ [289.1, 0, 150.112]
+ ],
+ 3
+ ],
+ ["touchmove", 289.1, 0, 150.112],
+ [
+ "pointermove",
+ 305,
+ 0,
+ 158.454,
+ [
+ [296.5, 0, 154.269],
+ [305, 0, 158.454]
+ ],
+ 3
+ ],
+ ["touchmove", 305, 0, 158.454],
+ [
+ "pointermove",
+ 321.4,
+ 0,
+ 166.797,
+ [
+ [313.1, 0, 162.612],
+ [321.4, 0, 166.797]
+ ],
+ 3
+ ],
+ ["touchmove", 321.4, 0, 166.797],
+ [
+ "pointermove",
+ 338.2,
+ 0,
+ 175.112,
+ [
+ [329.8, 0, 170.954],
+ [338.2, 0, 175.112]
+ ],
+ 3
+ ],
+ ["touchmove", 338.2, 0, 175.112],
+ [
+ "pointermove",
+ 355,
+ 0,
+ 183.454,
+ [
+ [346.2, 0, 179.297],
+ [355, 0, 183.454]
+ ],
+ 3
+ ],
+ ["touchmove", 355, 0, 183.454],
+ [
+ "pointermove",
+ 371.5,
+ 0,
+ 191.797,
+ [
+ [363.1, 0, 187.639],
+ [371.5, 0, 191.797]
+ ],
+ 3
+ ],
+ ["touchmove", 371.5, 0, 191.797],
+ [
+ "pointermove",
+ 388.2,
+ 0,
+ 200.139,
+ [
+ [379.7, 0, 195.982],
+ [388.2, 0, 200.139]
+ ],
+ 3
+ ],
+ ["touchmove", 388.2, 0, 200.139],
+ ["pointerup", 688.9, 0, 200.139],
+ ["touchend", 688.9, 0, 200.139]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-fling.json
new file mode 100644
index 0000000000..de81fbfaa2
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-fling.json
@@ -0,0 +1,66 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Firefox 158.0",
+ "ua": "Mozilla/5.0 (Android 15; Mobile; rv:158.0) Gecko/158.0 Firefox/158.0",
+ "dpr": 1.7647058823529411,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 2000,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 16.664],
+ [16.667, 0, 33.328],
+ [25, 0, 49.993],
+ [33.333, 0, 66.657],
+ [41.667, 0, 83.321],
+ [50, 0, 99.985],
+ [58.333, 0, 116.649],
+ [66.667, 0, 133.314],
+ [75, 0, 149.978],
+ [83.333, 0, 166.642],
+ [91.667, 0, 183.306],
+ [100, 0, 199.97],
+ [108.333, 0, 216.635],
+ [116.667, 0, 233.299],
+ [125, 0, 249.963],
+ [133.333, 0, 266.627],
+ [141.667, 0, 283.291],
+ [150, 0, 299.956]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0.3],
+ ["pointermove", 14, 0, 49.867, [[14, 0, 49.867]], 0],
+ ["touchmove", 14, 0, 50.3],
+ ["pointermove", 30, 0, 83.3, [[30, 0, 83.3]], 0],
+ ["touchmove", 30, 0, 83.3],
+ ["pointermove", 46, 0, 116.733, [[46, 0, 116.733]], 0],
+ ["touchmove", 46, 0, 116.3],
+ ["pointermove", 63, 0, 150.167, [[63, 0, 150.167]], 0],
+ ["touchmove", 63, 0, 150.3],
+ ["pointermove", 81, 0, 183.033, [[81, 0, 183.033]], 0],
+ ["touchmove", 81, 0, 183.3],
+ ["pointermove", 96, 0, 216.467, [[96, 0, 216.467]], 0],
+ ["touchmove", 96, 0, 216.3],
+ ["pointermove", 113, 0, 249.9, [[113, 0, 249.9]], 0],
+ ["touchmove", 113, 0, 250.3],
+ ["pointermove", 130, 0, 282.767, [[130, 0, 282.767]], 0],
+ ["touchmove", 130, 0, 282.3],
+ ["pointermove", 138, 0, 299.767, [[138, 0, 299.767]], 0],
+ ["touchmove", 138, 0, 299.3],
+ ["pointerup", 138, 0, 299.767],
+ ["touchend", 138, 0, 299.3]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-slow.json
new file mode 100644
index 0000000000..2ba80452f4
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-slow.json
@@ -0,0 +1,268 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Firefox 158.0",
+ "ua": "Mozilla/5.0 (Android 15; Mobile; rv:158.0) Gecko/158.0 Firefox/158.0",
+ "dpr": 1.7647058823529411,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 200,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 1.665],
+ [16.667, 0, 3.331],
+ [25, 0, 4.996],
+ [33.333, 0, 6.661],
+ [41.667, 0, 8.327],
+ [50, 0, 9.992],
+ [58.333, 0, 11.658],
+ [66.667, 0, 13.323],
+ [75, 0, 14.988],
+ [83.333, 0, 16.654],
+ [91.667, 0, 18.319],
+ [100, 0, 19.984],
+ [108.333, 0, 21.65],
+ [116.667, 0, 23.315],
+ [125, 0, 24.981],
+ [133.333, 0, 26.646],
+ [141.667, 0, 28.311],
+ [150, 0, 29.977],
+ [158.333, 0, 31.642],
+ [166.667, 0, 33.307],
+ [175, 0, 34.973],
+ [183.333, 0, 36.638],
+ [191.667, 0, 38.304],
+ [200, 0, 39.969],
+ [208.333, 0, 41.634],
+ [216.667, 0, 43.3],
+ [225, 0, 44.965],
+ [233.333, 0, 46.63],
+ [241.667, 0, 48.296],
+ [250, 0, 49.961],
+ [258.333, 0, 51.626],
+ [266.667, 0, 53.292],
+ [275, 0, 54.957],
+ [283.333, 0, 56.623],
+ [291.667, 0, 58.288],
+ [300, 0, 59.953],
+ [308.333, 0, 61.619],
+ [316.667, 0, 63.284],
+ [325, 0, 64.949],
+ [333.333, 0, 66.615],
+ [341.667, 0, 68.28],
+ [350, 0, 69.946],
+ [358.333, 0, 71.611],
+ [366.667, 0, 73.276],
+ [375, 0, 74.942],
+ [383.333, 0, 76.607],
+ [391.667, 0, 78.272],
+ [400, 0, 79.938],
+ [408.333, 0, 81.603],
+ [416.667, 0, 83.269],
+ [425, 0, 84.934],
+ [433.333, 0, 86.599],
+ [441.667, 0, 88.265],
+ [450, 0, 89.93],
+ [458.333, 0, 91.595],
+ [466.667, 0, 93.261],
+ [475, 0, 94.926],
+ [483.333, 0, 96.591],
+ [491.667, 0, 98.257],
+ [500, 0, 99.922],
+ [508.333, 0, 101.588],
+ [516.667, 0, 103.253],
+ [525, 0, 104.918],
+ [533.333, 0, 106.584],
+ [541.667, 0, 108.249],
+ [550, 0, 109.914],
+ [558.333, 0, 111.58],
+ [566.667, 0, 113.245],
+ [575, 0, 114.911],
+ [583.333, 0, 116.576],
+ [591.667, 0, 118.241],
+ [600, 0, 119.907],
+ [608.333, 0, 121.572],
+ [616.667, 0, 123.237],
+ [625, 0, 124.903],
+ [633.333, 0, 126.568],
+ [641.667, 0, 128.234],
+ [650, 0, 129.899],
+ [658.333, 0, 131.564],
+ [666.667, 0, 133.23],
+ [675, 0, 134.895],
+ [683.333, 0, 136.56],
+ [691.667, 0, 138.226],
+ [700, 0, 139.891],
+ [708.333, 0, 141.556],
+ [716.667, 0, 143.222],
+ [725, 0, 144.887],
+ [733.333, 0, 146.553],
+ [741.667, 0, 148.218],
+ [750, 0, 149.883],
+ [758.333, 0, 151.549],
+ [766.667, 0, 153.214],
+ [775, 0, 154.879],
+ [783.333, 0, 156.545],
+ [791.667, 0, 158.21],
+ [800, 0, 159.876],
+ [808.333, 0, 161.541],
+ [816.667, 0, 163.206],
+ [825, 0, 164.872],
+ [833.333, 0, 166.537],
+ [841.667, 0, 168.202],
+ [850, 0, 169.868],
+ [858.333, 0, 171.533],
+ [866.667, 0, 173.199],
+ [875, 0, 174.864],
+ [883.333, 0, 176.529],
+ [891.667, 0, 178.195],
+ [900, 0, 179.86],
+ [908.333, 0, 181.525],
+ [916.667, 0, 183.191],
+ [925, 0, 184.856],
+ [933.333, 0, 186.521],
+ [941.667, 0, 188.187],
+ [950, 0, 189.852],
+ [958.333, 0, 191.518],
+ [966.667, 0, 193.183],
+ [975, 0, 194.848],
+ [983.333, 0, 196.514],
+ [991.667, 0, 198.179],
+ [1000, 0, 199.844]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0.3],
+ ["pointermove", 23, 0, 6.8, [[23, 0, 6.8]], 0],
+ ["touchmove", 23, 0, 7.3],
+ ["pointermove", 40, 0, 10.2, [[40, 0, 10.2]], 0],
+ ["touchmove", 40, 0, 10.3],
+ ["pointermove", 56, 0, 13.6, [[56, 0, 13.6]], 0],
+ ["touchmove", 56, 0, 13.3],
+ ["pointermove", 73, 0, 17, [[73, 0, 17]], 0],
+ ["touchmove", 73, 0, 17.3],
+ ["pointermove", 89, 0, 20.4, [[89, 0, 20.4]], 0],
+ ["touchmove", 89, 0, 20.3],
+ ["pointermove", 106, 0, 23.233, [[106, 0, 23.233]], 0],
+ ["touchmove", 106, 0, 23.3],
+ ["pointermove", 123, 0, 26.633, [[123, 0, 26.633]], 0],
+ ["touchmove", 123, 0, 26.3],
+ ["pointermove", 139, 0, 30.033, [[139, 0, 30.033]], 0],
+ ["touchmove", 139, 0, 30.3],
+ ["pointermove", 156, 0, 33.433, [[156, 0, 33.433]], 0],
+ ["touchmove", 156, 0, 33.3],
+ ["pointermove", 173, 0, 36.833, [[173, 0, 36.833]], 0],
+ ["touchmove", 173, 0, 37.3],
+ ["pointermove", 190, 0, 40.233, [[190, 0, 40.233]], 0],
+ ["touchmove", 190, 0, 40.3],
+ ["pointermove", 206, 0, 43.633, [[206, 0, 43.633]], 0],
+ ["touchmove", 206, 0, 43.3],
+ ["pointermove", 224, 0, 46.467, [[224, 0, 46.467]], 0],
+ ["touchmove", 224, 0, 46.3],
+ ["pointermove", 239, 0, 49.867, [[239, 0, 49.867]], 0],
+ ["touchmove", 239, 0, 50.3],
+ ["pointermove", 256, 0, 53.267, [[256, 0, 53.267]], 0],
+ ["touchmove", 256, 0, 53.3],
+ ["pointermove", 273, 0, 56.667, [[273, 0, 56.667]], 0],
+ ["touchmove", 273, 0, 56.3],
+ ["pointermove", 289, 0, 60.067, [[289, 0, 60.067]], 0],
+ ["touchmove", 289, 0, 60.3],
+ ["pointermove", 306, 0, 63.467, [[306, 0, 63.467]], 0],
+ ["touchmove", 306, 0, 63.3],
+ ["pointermove", 323, 0, 66.867, [[323, 0, 66.867]], 0],
+ ["touchmove", 323, 0, 67.3],
+ ["pointermove", 339, 0, 70.267, [[339, 0, 70.267]], 0],
+ ["touchmove", 339, 0, 70.3],
+ ["pointermove", 356, 0, 73.1, [[356, 0, 73.1]], 0],
+ ["touchmove", 356, 0, 73.3],
+ ["pointermove", 373, 0, 76.5, [[373, 0, 76.5]], 0],
+ ["touchmove", 373, 0, 76.3],
+ ["pointermove", 389, 0, 79.9, [[389, 0, 79.9]], 0],
+ ["touchmove", 389, 0, 80.3],
+ ["pointermove", 406, 0, 83.3, [[406, 0, 83.3]], 0],
+ ["touchmove", 406, 0, 83.3],
+ ["pointermove", 424, 0, 86.7, [[424, 0, 86.7]], 0],
+ ["touchmove", 424, 0, 86.3],
+ ["pointermove", 439, 0, 90.1, [[439, 0, 90.1]], 0],
+ ["touchmove", 439, 0, 90.3],
+ ["pointermove", 456, 0, 93.5, [[456, 0, 93.5]], 0],
+ ["touchmove", 456, 0, 93.3],
+ ["pointermove", 473, 0, 96.9, [[473, 0, 96.9]], 0],
+ ["touchmove", 473, 0, 97.3],
+ ["pointermove", 489, 0, 99.733, [[489, 0, 99.733]], 0],
+ ["touchmove", 489, 0, 99.3],
+ ["pointermove", 506, 0, 103.133, [[506, 0, 103.133]], 0],
+ ["touchmove", 506, 0, 103.3],
+ ["pointermove", 523, 0, 106.533, [[523, 0, 106.533]], 0],
+ ["touchmove", 523, 0, 106.3],
+ ["pointermove", 540, 0, 109.933, [[540, 0, 109.933]], 0],
+ ["touchmove", 540, 0, 110.3],
+ ["pointermove", 556, 0, 113.333, [[556, 0, 113.333]], 0],
+ ["touchmove", 556, 0, 113.3],
+ ["pointermove", 574, 0, 116.733, [[574, 0, 116.733]], 0],
+ ["touchmove", 574, 0, 116.3],
+ ["pointermove", 589, 0, 120.133, [[589, 0, 120.133]], 0],
+ ["touchmove", 589, 0, 120.3],
+ ["pointermove", 607, 0, 123.533, [[607, 0, 123.533]], 0],
+ ["touchmove", 607, 0, 123.3],
+ ["pointermove", 623, 0, 126.367, [[623, 0, 126.367]], 0],
+ ["touchmove", 623, 0, 126.3],
+ ["pointermove", 640, 0, 129.767, [[640, 0, 129.767]], 0],
+ ["touchmove", 640, 0, 129.3],
+ ["pointermove", 656, 0, 133.167, [[656, 0, 133.167]], 0],
+ ["touchmove", 656, 0, 133.3],
+ ["pointermove", 674, 0, 136.567, [[674, 0, 136.567]], 0],
+ ["touchmove", 674, 0, 136.3],
+ ["pointermove", 689, 0, 139.967, [[689, 0, 139.967]], 0],
+ ["touchmove", 689, 0, 140.3],
+ ["pointermove", 707, 0, 143.367, [[707, 0, 143.367]], 0],
+ ["touchmove", 707, 0, 143.3],
+ ["pointermove", 723, 0, 146.767, [[723, 0, 146.767]], 0],
+ ["touchmove", 723, 0, 146.3],
+ ["pointermove", 740, 0, 149.6, [[740, 0, 149.6]], 0],
+ ["touchmove", 740, 0, 149.3],
+ ["pointermove", 756, 0, 153, [[756, 0, 153]], 0],
+ ["touchmove", 756, 0, 153.3],
+ ["pointermove", 773, 0, 156.4, [[773, 0, 156.4]], 0],
+ ["touchmove", 773, 0, 156.3],
+ ["pointermove", 789, 0, 159.8, [[789, 0, 159.8]], 0],
+ ["touchmove", 789, 0, 160.3],
+ ["pointermove", 806, 0, 163.2, [[806, 0, 163.2]], 0],
+ ["touchmove", 806, 0, 163.3],
+ ["pointermove", 823, 0, 166.6, [[823, 0, 166.6]], 0],
+ ["touchmove", 823, 0, 166.3],
+ ["pointermove", 839, 0, 170, [[839, 0, 170]], 0],
+ ["touchmove", 839, 0, 170.3],
+ ["pointermove", 856, 0, 173.4, [[856, 0, 173.4]], 0],
+ ["touchmove", 856, 0, 173.3],
+ ["pointermove", 873, 0, 176.233, [[873, 0, 176.233]], 0],
+ ["touchmove", 873, 0, 176.3],
+ ["pointermove", 889, 0, 179.633, [[889, 0, 179.633]], 0],
+ ["touchmove", 889, 0, 179.3],
+ ["pointermove", 906, 0, 183.033, [[906, 0, 183.033]], 0],
+ ["touchmove", 906, 0, 183.3],
+ ["pointermove", 923, 0, 186.433, [[923, 0, 186.433]], 0],
+ ["touchmove", 923, 0, 186.3],
+ ["pointermove", 939, 0, 189.833, [[939, 0, 189.833]], 0],
+ ["touchmove", 939, 0, 190.3],
+ ["pointermove", 956, 0, 193.233, [[956, 0, 193.233]], 0],
+ ["touchmove", 956, 0, 193.3],
+ ["pointermove", 973, 0, 196.633, [[973, 0, 196.633]], 0],
+ ["touchmove", 973, 0, 196.3],
+ ["pointermove", 988, 0, 199.467, [[988, 0, 199.467]], 0],
+ ["touchmove", 988, 0, 199.3],
+ ["pointerup", 988, 0, 199.467],
+ ["touchend", 988, 0, 199.3]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-stop-release.json
new file mode 100644
index 0000000000..33c5acb9cb
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/android-firefox-stop-release.json
@@ -0,0 +1,128 @@
+{
+ "schema": 1,
+ "platform": "Android 15 emulator",
+ "browser": "Firefox 158.0",
+ "ua": "Mozilla/5.0 (Android 15; Mobile; rv:158.0) Gecko/158.0 Firefox/158.0",
+ "dpr": 1.7647058823529411,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through a uinput touchscreen (no stylus) at 120 Hz, Android 15 emulator, panel 720×1600",
+ "hz": 120,
+ "speed": 500,
+ "restMs": 300,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 4.163],
+ [16.667, 0, 8.327],
+ [25, 0, 12.49],
+ [33.333, 0, 16.654],
+ [41.667, 0, 20.817],
+ [50, 0, 24.981],
+ [58.333, 0, 29.144],
+ [66.667, 0, 33.307],
+ [75, 0, 37.471],
+ [83.333, 0, 41.634],
+ [91.667, 0, 45.798],
+ [100, 0, 49.961],
+ [108.333, 0, 54.125],
+ [116.667, 0, 58.288],
+ [125, 0, 62.451],
+ [133.333, 0, 66.615],
+ [141.667, 0, 70.778],
+ [150, 0, 74.942],
+ [158.333, 0, 79.105],
+ [166.667, 0, 83.269],
+ [175, 0, 87.432],
+ [183.333, 0, 91.595],
+ [191.667, 0, 95.759],
+ [200, 0, 99.922],
+ [208.333, 0, 104.086],
+ [216.667, 0, 108.249],
+ [225, 0, 112.413],
+ [233.333, 0, 116.576],
+ [241.667, 0, 120.739],
+ [250, 0, 124.903],
+ [258.333, 0, 129.066],
+ [266.667, 0, 133.23],
+ [275, 0, 137.393],
+ [283.333, 0, 141.556],
+ [291.667, 0, 145.72],
+ [300, 0, 149.883],
+ [308.333, 0, 154.047],
+ [316.667, 0, 158.21],
+ [325, 0, 162.374],
+ [333.333, 0, 166.537],
+ [341.667, 0, 170.7],
+ [350, 0, 174.864],
+ [358.333, 0, 179.027],
+ [366.667, 0, 183.191],
+ [375, 0, 187.354],
+ [383.333, 0, 191.518],
+ [391.667, 0, 195.681],
+ [400, 0, 199.844]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 296,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0.3],
+ ["pointermove", 3, 0, 6.8, [[3, 0, 6.8]], 0],
+ ["touchmove", 3, 0, 7.3],
+ ["pointermove", 20, 0, 15.867, [[20, 0, 15.867]], 0],
+ ["touchmove", 20, 0, 16.3],
+ ["pointermove", 36, 0, 24.367, [[36, 0, 24.367]], 0],
+ ["touchmove", 36, 0, 24.3],
+ ["pointermove", 53, 0, 32.867, [[53, 0, 32.867]], 0],
+ ["touchmove", 53, 0, 33.3],
+ ["pointermove", 70, 0, 40.8, [[70, 0, 40.8]], 0],
+ ["touchmove", 70, 0, 41.3],
+ ["pointermove", 86, 0, 49.3, [[86, 0, 49.3]], 0],
+ ["touchmove", 86, 0, 49.3],
+ ["pointermove", 103, 0, 57.233, [[103, 0, 57.233]], 0],
+ ["touchmove", 103, 0, 57.3],
+ ["pointermove", 120, 0, 65.733, [[120, 0, 65.733]], 0],
+ ["touchmove", 120, 0, 65.3],
+ ["pointermove", 136, 0, 73.1, [[136, 0, 73.1]], 0],
+ ["touchmove", 136, 0, 73.3],
+ ["pointermove", 153, 0, 82.167, [[153, 0, 82.167]], 0],
+ ["touchmove", 153, 0, 82.3],
+ ["pointermove", 170, 0, 90.667, [[170, 0, 90.667]], 0],
+ ["touchmove", 170, 0, 90.3],
+ ["pointermove", 186, 0, 99.167, [[186, 0, 99.167]], 0],
+ ["touchmove", 186, 0, 99.3],
+ ["pointermove", 203, 0, 107.1, [[203, 0, 107.1]], 0],
+ ["touchmove", 203, 0, 107.3],
+ ["pointermove", 220, 0, 115.6, [[220, 0, 115.6]], 0],
+ ["touchmove", 220, 0, 115.3],
+ ["pointermove", 236, 0, 124.1, [[236, 0, 124.1]], 0],
+ ["touchmove", 236, 0, 124.3],
+ ["pointermove", 253, 0, 132.033, [[253, 0, 132.033]], 0],
+ ["touchmove", 253, 0, 132.3],
+ ["pointermove", 270, 0, 140.533, [[270, 0, 140.533]], 0],
+ ["touchmove", 270, 0, 140.3],
+ ["pointermove", 286, 0, 149.033, [[286, 0, 149.033]], 0],
+ ["touchmove", 286, 0, 149.3],
+ ["pointermove", 303, 0, 157.533, [[303, 0, 157.533]], 0],
+ ["touchmove", 303, 0, 157.3],
+ ["pointermove", 320, 0, 165.467, [[320, 0, 165.467]], 0],
+ ["touchmove", 320, 0, 165.3],
+ ["pointermove", 336, 0, 173.967, [[336, 0, 173.967]], 0],
+ ["touchmove", 336, 0, 174.3],
+ ["pointermove", 353, 0, 181.333, [[353, 0, 181.333]], 0],
+ ["touchmove", 353, 0, 181.3],
+ ["pointermove", 371, 0, 190.4, [[371, 0, 190.4]], 0],
+ ["touchmove", 371, 0, 190.3],
+ ["pointermove", 387, 0, 198.9, [[387, 0, 198.9]], 0],
+ ["touchmove", 387, 0, 199.3],
+ ["pointermove", 392, 0, 201.733, [[392, 0, 201.733]], 0],
+ ["touchmove", 392, 0, 201.3],
+ ["pointerup", 688, 0, 199.467],
+ ["touchend", 688, 0, 199.3]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/capture.html b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/capture.html
new file mode 100644
index 0000000000..c347a386d1
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/capture.html
@@ -0,0 +1,123 @@
+<!-- Copyright (c) Meta Platforms, Inc. and affiliates. -->
+
+<!doctype html>
+<meta
+ name="viewport"
+ content="width=device-width,initial-scale=1,user-scalable=no" />
+<title>Pointer streams capture</title>
+<style>
+ html,
+ body {
+ margin: 0;
+ height: 100%;
+ overflow: hidden;
+ }
+ #pad {
+ position: fixed;
+ inset: 0;
+ touch-action: none;
+ background: #f4f4f8;
+ -webkit-user-select: none;
+ user-select: none;
+ -webkit-touch-callout: none;
+ }
+ #status {
+ position: fixed;
+ left: 8px;
+ bottom: 8px;
+ font: 12px system-ui;
+ color: #555;
+ pointer-events: none;
+ }
+</style>
+<div id="pad"></div>
+<div id="status">ready</div>
+<script>
+ // Records one contact's pointer and touch events as the page receives them: per pointermove its
+ // getCoalescedEvents() list ([t, x, y] each) and getPredictedEvents() count; times are ms after the
+ // pointerdown's timeStamp (performance.now clock), positions CSS px from the pointerdown. Listeners are on
+ // window, capture and passive; the pad has touch-action: none, so the browser never takes the contact.
+ // ?post=probe posts the record to /__probe and ?post=beacon to /beacon, for a local server that collects them;
+ // window.__streams keeps every record either way.
+ (() => {
+ const params = new URLSearchParams(location.search);
+ const run = params.get('run') || 'r';
+ const post = params.get('post') || 'none';
+ const status = document.getElementById('status');
+ const eventTime = e =>
+ e.timeStamp > 1e12 && performance.timeOrigin > 0
+ ? e.timeStamp - performance.timeOrigin
+ : e.timeStamp;
+ const r3 = v => Math.round(v * 1000) / 1000;
+ window.__streams = [];
+ let rec = null;
+ let sent = true;
+ const rel = (t, x, y) => [r3(t - rec.t0), r3(x - rec.x0), r3(y - rec.y0)];
+ const send = () => {
+ if (sent) return;
+ sent = true;
+ window.__streams.push(rec);
+ status.textContent = `recorded ${rec.events.length} events`;
+ const body = JSON.stringify({kind: 'streams', ...rec});
+ if (post === 'probe')
+ fetch('/__probe', {method: 'POST', body}).catch(() => {});
+ if (post === 'beacon')
+ fetch('/beacon', {method: 'POST', body}).catch(() => {});
+ };
+ const on = (type, fn) =>
+ addEventListener(type, fn, {capture: true, passive: true});
+ on('pointerdown', e => {
+ if (!sent) return;
+ sent = false;
+ rec = {
+ run,
+ pointerType: e.pointerType,
+ ua: navigator.userAgent,
+ dpr: devicePixelRatio,
+ coarse: matchMedia('(pointer: coarse)').matches,
+ viewport: [innerWidth, innerHeight],
+ screen: [screen.width, screen.height],
+ t0: eventTime(e),
+ x0: e.clientX,
+ y0: e.clientY,
+ events: [],
+ };
+ rec.events.push(['pointerdown', 0, 0, 0]);
+ });
+ on('pointermove', e => {
+ if (sent || rec.done || e.pointerType !== rec.pointerType) return;
+ const coalesced =
+ typeof e.getCoalescedEvents === 'function'
+ ? e
+ .getCoalescedEvents()
+ .map(c => rel(eventTime(c), c.clientX, c.clientY))
+ : null;
+ const predicted =
+ typeof e.getPredictedEvents === 'function'
+ ? e.getPredictedEvents().length
+ : null;
+ rec.events.push([
+ 'pointermove',
+ ...rel(eventTime(e), e.clientX, e.clientY),
+ coalesced,
+ predicted,
+ ]);
+ });
+ for (const type of ['pointerup', 'pointercancel']) {
+ on(type, e => {
+ if (sent || rec.done) return;
+ rec.events.push([type, ...rel(eventTime(e), e.clientX, e.clientY)]);
+ rec.done = true;
+ setTimeout(send, 200);
+ });
+ }
+ for (const type of ['touchstart', 'touchmove', 'touchend', 'touchcancel']) {
+ on(type, e => {
+ if (sent) return;
+ const t = e.changedTouches[0];
+ if (t)
+ rec.events.push([type, ...rel(eventTime(e), t.clientX, t.clientY)]);
+ });
+ }
+ })();
+</script>
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-fling.json
new file mode 100644
index 0000000000..28ab3a94d6
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-fling.json
@@ -0,0 +1,64 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "mouse",
+ "coarse": false,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType mouse) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 2000,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 16.667],
+ [16.667, 0, 33.333],
+ [25, 0, 50],
+ [33.333, 0, 66.667],
+ [41.667, 0, 83.333],
+ [50, 0, 100],
+ [58.333, 0, 116.667],
+ [66.667, 0, 133.333],
+ [75, 0, 150],
+ [83.333, 0, 166.667],
+ [91.667, 0, 183.333],
+ [100, 0, 200],
+ [108.333, 0, 216.667],
+ [116.667, 0, 233.333],
+ [125, 0, 250],
+ [133.333, 0, 266.667],
+ [141.667, 0, 283.333],
+ [150, 0, 300]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.4, 0, 16.667, [], 0],
+ ["pointermove", 16.8, 0, 33.333, [], 0],
+ ["pointermove", 25, 0, 50, [], 0],
+ ["pointermove", 33.4, 0, 66.667, [], 3],
+ ["pointermove", 41.7, 0, 83.333, [], 3],
+ ["pointermove", 50.1, 0, 100, [], 3],
+ ["pointermove", 58.3, 0, 116.667, [], 3],
+ ["pointermove", 66.7, 0, 133.333, [], 3],
+ ["pointermove", 75.1, 0, 150, [], 3],
+ ["pointermove", 83.3, 0, 166.667, [], 3],
+ ["pointermove", 91.7, 0, 183.333, [], 3],
+ ["pointermove", 100.1, 0, 200, [], 3],
+ ["pointermove", 108.4, 0, 216.667, [], 3],
+ ["pointermove", 116.8, 0, 233.333, [], 3],
+ ["pointermove", 125, 0, 250, [], 3],
+ ["pointermove", 133.4, 0, 266.667, [], 3],
+ ["pointermove", 141.7, 0, 283.333, [], 3],
+ ["pointermove", 150, 0, 300, [], 3],
+ ["pointerup", 150, 0, 300]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-slow.json
new file mode 100644
index 0000000000..b8a303ae31
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-slow.json
@@ -0,0 +1,268 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "mouse",
+ "coarse": false,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType mouse) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 200,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 1.667],
+ [16.667, 0, 3.333],
+ [25, 0, 5],
+ [33.333, 0, 6.667],
+ [41.667, 0, 8.333],
+ [50, 0, 10],
+ [58.333, 0, 11.667],
+ [66.667, 0, 13.333],
+ [75, 0, 15],
+ [83.333, 0, 16.667],
+ [91.667, 0, 18.333],
+ [100, 0, 20],
+ [108.333, 0, 21.667],
+ [116.667, 0, 23.333],
+ [125, 0, 25],
+ [133.333, 0, 26.667],
+ [141.667, 0, 28.333],
+ [150, 0, 30],
+ [158.333, 0, 31.667],
+ [166.667, 0, 33.333],
+ [175, 0, 35],
+ [183.333, 0, 36.667],
+ [191.667, 0, 38.333],
+ [200, 0, 40],
+ [208.333, 0, 41.667],
+ [216.667, 0, 43.333],
+ [225, 0, 45],
+ [233.333, 0, 46.667],
+ [241.667, 0, 48.333],
+ [250, 0, 50],
+ [258.333, 0, 51.667],
+ [266.667, 0, 53.333],
+ [275, 0, 55],
+ [283.333, 0, 56.667],
+ [291.667, 0, 58.333],
+ [300, 0, 60],
+ [308.333, 0, 61.667],
+ [316.667, 0, 63.333],
+ [325, 0, 65],
+ [333.333, 0, 66.667],
+ [341.667, 0, 68.333],
+ [350, 0, 70],
+ [358.333, 0, 71.667],
+ [366.667, 0, 73.333],
+ [375, 0, 75],
+ [383.333, 0, 76.667],
+ [391.667, 0, 78.333],
+ [400, 0, 80],
+ [408.333, 0, 81.667],
+ [416.667, 0, 83.333],
+ [425, 0, 85],
+ [433.333, 0, 86.667],
+ [441.667, 0, 88.333],
+ [450, 0, 90],
+ [458.333, 0, 91.667],
+ [466.667, 0, 93.333],
+ [475, 0, 95],
+ [483.333, 0, 96.667],
+ [491.667, 0, 98.333],
+ [500, 0, 100],
+ [508.333, 0, 101.667],
+ [516.667, 0, 103.333],
+ [525, 0, 105],
+ [533.333, 0, 106.667],
+ [541.667, 0, 108.333],
+ [550, 0, 110],
+ [558.333, 0, 111.667],
+ [566.667, 0, 113.333],
+ [575, 0, 115],
+ [583.333, 0, 116.667],
+ [591.667, 0, 118.333],
+ [600, 0, 120],
+ [608.333, 0, 121.667],
+ [616.667, 0, 123.333],
+ [625, 0, 125],
+ [633.333, 0, 126.667],
+ [641.667, 0, 128.333],
+ [650, 0, 130],
+ [658.333, 0, 131.667],
+ [666.667, 0, 133.333],
+ [675, 0, 135],
+ [683.333, 0, 136.667],
+ [691.667, 0, 138.333],
+ [700, 0, 140],
+ [708.333, 0, 141.667],
+ [716.667, 0, 143.333],
+ [725, 0, 145],
+ [733.333, 0, 146.667],
+ [741.667, 0, 148.333],
+ [750, 0, 150],
+ [758.333, 0, 151.667],
+ [766.667, 0, 153.333],
+ [775, 0, 155],
+ [783.333, 0, 156.667],
+ [791.667, 0, 158.333],
+ [800, 0, 160],
+ [808.333, 0, 161.667],
+ [816.667, 0, 163.333],
+ [825, 0, 165],
+ [833.333, 0, 166.667],
+ [841.667, 0, 168.333],
+ [850, 0, 170],
+ [858.333, 0, 171.667],
+ [866.667, 0, 173.333],
+ [875, 0, 175],
+ [883.333, 0, 176.667],
+ [891.667, 0, 178.333],
+ [900, 0, 180],
+ [908.333, 0, 181.667],
+ [916.667, 0, 183.333],
+ [925, 0, 185],
+ [933.333, 0, 186.667],
+ [941.667, 0, 188.333],
+ [950, 0, 190],
+ [958.333, 0, 191.667],
+ [966.667, 0, 193.333],
+ [975, 0, 195],
+ [983.333, 0, 196.667],
+ [991.667, 0, 198.333],
+ [1000, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.4, 0, 1.667, [], 0],
+ ["pointermove", 16.7, 0, 3.333, [], 0],
+ ["pointermove", 25.1, 0, 5, [], 0],
+ ["pointermove", 33.4, 0, 6.667, [], 3],
+ ["pointermove", 41.7, 0, 8.333, [], 3],
+ ["pointermove", 50, 0, 10, [], 3],
+ ["pointermove", 58.4, 0, 11.667, [], 3],
+ ["pointermove", 66.7, 0, 13.333, [], 3],
+ ["pointermove", 75.1, 0, 15, [], 3],
+ ["pointermove", 83.4, 0, 16.667, [], 3],
+ ["pointermove", 91.7, 0, 18.333, [], 3],
+ ["pointermove", 100, 0, 20, [], 3],
+ ["pointermove", 108.3, 0, 21.667, [], 3],
+ ["pointermove", 116.7, 0, 23.333, [], 3],
+ ["pointermove", 125, 0, 25, [], 3],
+ ["pointermove", 133.4, 0, 26.667, [], 3],
+ ["pointermove", 141.7, 0, 28.333, [], 3],
+ ["pointermove", 150, 0, 30, [], 3],
+ ["pointermove", 158.3, 0, 31.667, [], 3],
+ ["pointermove", 166.7, 0, 33.333, [], 3],
+ ["pointermove", 175, 0, 35, [], 3],
+ ["pointermove", 183.4, 0, 36.667, [], 3],
+ ["pointermove", 191.7, 0, 38.333, [], 3],
+ ["pointermove", 200.1, 0, 40, [], 3],
+ ["pointermove", 208.4, 0, 41.667, [], 3],
+ ["pointermove", 216.7, 0, 43.333, [], 3],
+ ["pointermove", 225, 0, 45, [], 3],
+ ["pointermove", 233.4, 0, 46.667, [], 3],
+ ["pointermove", 241.7, 0, 48.333, [], 3],
+ ["pointermove", 250, 0, 50, [], 3],
+ ["pointermove", 258.4, 0, 51.667, [], 3],
+ ["pointermove", 266.7, 0, 53.333, [], 3],
+ ["pointermove", 275, 0, 55, [], 3],
+ ["pointermove", 283.4, 0, 56.667, [], 3],
+ ["pointermove", 291.7, 0, 58.333, [], 3],
+ ["pointermove", 300.1, 0, 60, [], 3],
+ ["pointermove", 308.4, 0, 61.667, [], 3],
+ ["pointermove", 316.8, 0, 63.333, [], 3],
+ ["pointermove", 325, 0, 65, [], 3],
+ ["pointermove", 333.4, 0, 66.667, [], 3],
+ ["pointermove", 341.7, 0, 68.333, [], 3],
+ ["pointermove", 350, 0, 70, [], 3],
+ ["pointermove", 358.4, 0, 71.667, [], 3],
+ ["pointermove", 366.7, 0, 73.333, [], 3],
+ ["pointermove", 375, 0, 75, [], 3],
+ ["pointermove", 383.4, 0, 76.667, [], 3],
+ ["pointermove", 391.7, 0, 78.333, [], 3],
+ ["pointermove", 400.1, 0, 80, [], 3],
+ ["pointermove", 408.4, 0, 81.667, [], 3],
+ ["pointermove", 416.7, 0, 83.333, [], 3],
+ ["pointermove", 425, 0, 85, [], 3],
+ ["pointermove", 433.4, 0, 86.667, [], 3],
+ ["pointermove", 441.7, 0, 88.333, [], 3],
+ ["pointermove", 450.1, 0, 90, [], 3],
+ ["pointermove", 458.3, 0, 91.667, [], 3],
+ ["pointermove", 466.7, 0, 93.333, [], 3],
+ ["pointermove", 475, 0, 95, [], 3],
+ ["pointermove", 483.4, 0, 96.667, [], 3],
+ ["pointermove", 491.8, 0, 98.333, [], 3],
+ ["pointermove", 500, 0, 100, [], 3],
+ ["pointermove", 508.4, 0, 101.667, [], 3],
+ ["pointermove", 516.7, 0, 103.333, [], 3],
+ ["pointermove", 525.1, 0, 105, [], 3],
+ ["pointermove", 533.4, 0, 106.667, [], 3],
+ ["pointermove", 541.7, 0, 108.333, [], 3],
+ ["pointermove", 550, 0, 110, [], 3],
+ ["pointermove", 558.3, 0, 111.667, [], 3],
+ ["pointermove", 566.7, 0, 113.333, [], 3],
+ ["pointermove", 575.1, 0, 115, [], 3],
+ ["pointermove", 583.4, 0, 116.667, [], 3],
+ ["pointermove", 591.7, 0, 118.333, [], 3],
+ ["pointermove", 600.1, 0, 120, [], 3],
+ ["pointermove", 608.4, 0, 121.667, [], 3],
+ ["pointermove", 616.8, 0, 123.333, [], 3],
+ ["pointermove", 625, 0, 125, [], 3],
+ ["pointermove", 633.4, 0, 126.667, [], 3],
+ ["pointermove", 641.7, 0, 128.333, [], 3],
+ ["pointermove", 650.1, 0, 130, [], 3],
+ ["pointermove", 658.4, 0, 131.667, [], 3],
+ ["pointermove", 666.7, 0, 133.333, [], 3],
+ ["pointermove", 675.1, 0, 135, [], 3],
+ ["pointermove", 683.3, 0, 136.667, [], 3],
+ ["pointermove", 691.7, 0, 138.333, [], 3],
+ ["pointermove", 700, 0, 140, [], 3],
+ ["pointermove", 708.4, 0, 141.667, [], 3],
+ ["pointermove", 716.7, 0, 143.333, [], 3],
+ ["pointermove", 725, 0, 145, [], 3],
+ ["pointermove", 733.4, 0, 146.667, [], 3],
+ ["pointermove", 741.8, 0, 148.333, [], 3],
+ ["pointermove", 750.1, 0, 150, [], 3],
+ ["pointermove", 758.4, 0, 151.667, [], 3],
+ ["pointermove", 766.7, 0, 153.333, [], 3],
+ ["pointermove", 775, 0, 155, [], 3],
+ ["pointermove", 783.4, 0, 156.667, [], 3],
+ ["pointermove", 791.7, 0, 158.333, [], 3],
+ ["pointermove", 800.1, 0, 160, [], 3],
+ ["pointermove", 808.4, 0, 161.667, [], 3],
+ ["pointermove", 816.7, 0, 163.333, [], 3],
+ ["pointermove", 825, 0, 165, [], 3],
+ ["pointermove", 833.4, 0, 166.667, [], 3],
+ ["pointermove", 841.7, 0, 168.333, [], 3],
+ ["pointermove", 850, 0, 170, [], 3],
+ ["pointermove", 858.4, 0, 171.667, [], 3],
+ ["pointermove", 866.7, 0, 173.333, [], 3],
+ ["pointermove", 875.1, 0, 175, [], 3],
+ ["pointermove", 883.3, 0, 176.667, [], 3],
+ ["pointermove", 891.7, 0, 178.333, [], 3],
+ ["pointermove", 900.1, 0, 180, [], 3],
+ ["pointermove", 908.4, 0, 181.667, [], 3],
+ ["pointermove", 916.7, 0, 183.333, [], 3],
+ ["pointermove", 925.1, 0, 185, [], 3],
+ ["pointermove", 933.4, 0, 186.667, [], 3],
+ ["pointermove", 941.7, 0, 188.333, [], 3],
+ ["pointermove", 950, 0, 190, [], 3],
+ ["pointermove", 958.4, 0, 191.667, [], 3],
+ ["pointermove", 966.7, 0, 193.333, [], 3],
+ ["pointermove", 975.1, 0, 195, [], 3],
+ ["pointermove", 983.4, 0, 196.667, [], 3],
+ ["pointermove", 991.7, 0, 198.333, [], 3],
+ ["pointermove", 1000.1, 0, 200, [], 3],
+ ["pointerup", 1000.1, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-stop-release.json
new file mode 100644
index 0000000000..febf1d1cb7
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-mouse-stop-release.json
@@ -0,0 +1,124 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "mouse",
+ "coarse": false,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType mouse) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 500,
+ "restMs": 300,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 4.167],
+ [16.667, 0, 8.333],
+ [25, 0, 12.5],
+ [33.333, 0, 16.667],
+ [41.667, 0, 20.833],
+ [50, 0, 25],
+ [58.333, 0, 29.167],
+ [66.667, 0, 33.333],
+ [75, 0, 37.5],
+ [83.333, 0, 41.667],
+ [91.667, 0, 45.833],
+ [100, 0, 50],
+ [108.333, 0, 54.167],
+ [116.667, 0, 58.333],
+ [125, 0, 62.5],
+ [133.333, 0, 66.667],
+ [141.667, 0, 70.833],
+ [150, 0, 75],
+ [158.333, 0, 79.167],
+ [166.667, 0, 83.333],
+ [175, 0, 87.5],
+ [183.333, 0, 91.667],
+ [191.667, 0, 95.833],
+ [200, 0, 100],
+ [208.333, 0, 104.167],
+ [216.667, 0, 108.333],
+ [225, 0, 112.5],
+ [233.333, 0, 116.667],
+ [241.667, 0, 120.833],
+ [250, 0, 125],
+ [258.333, 0, 129.167],
+ [266.667, 0, 133.333],
+ [275, 0, 137.5],
+ [283.333, 0, 141.667],
+ [291.667, 0, 145.833],
+ [300, 0, 150],
+ [308.333, 0, 154.167],
+ [316.667, 0, 158.333],
+ [325, 0, 162.5],
+ [333.333, 0, 166.667],
+ [341.667, 0, 170.833],
+ [350, 0, 175],
+ [358.333, 0, 179.167],
+ [366.667, 0, 183.333],
+ [375, 0, 187.5],
+ [383.333, 0, 191.667],
+ [391.667, 0, 195.833],
+ [400, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 299.9,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.3, 0, 4.167, [], 0],
+ ["pointermove", 16.6, 0, 8.333, [], 0],
+ ["pointermove", 25, 0, 12.5, [], 0],
+ ["pointermove", 33.3, 0, 16.667, [], 3],
+ ["pointermove", 41.6, 0, 20.833, [], 3],
+ ["pointermove", 50, 0, 25, [], 3],
+ ["pointermove", 58.3, 0, 29.167, [], 3],
+ ["pointermove", 66.7, 0, 33.333, [], 3],
+ ["pointermove", 74.9, 0, 37.5, [], 3],
+ ["pointermove", 83.3, 0, 41.667, [], 3],
+ ["pointermove", 91.6, 0, 45.833, [], 3],
+ ["pointermove", 99.9, 0, 50, [], 3],
+ ["pointermove", 108.3, 0, 54.167, [], 3],
+ ["pointermove", 116.6, 0, 58.333, [], 3],
+ ["pointermove", 124.9, 0, 62.5, [], 3],
+ ["pointermove", 133.3, 0, 66.667, [], 3],
+ ["pointermove", 141.7, 0, 70.833, [], 3],
+ ["pointermove", 150, 0, 75, [], 3],
+ ["pointermove", 158.2, 0, 79.167, [], 3],
+ ["pointermove", 166.6, 0, 83.333, [], 3],
+ ["pointermove", 175, 0, 87.5, [], 3],
+ ["pointermove", 183.3, 0, 91.667, [], 3],
+ ["pointermove", 191.6, 0, 95.833, [], 3],
+ ["pointermove", 200, 0, 100, [], 3],
+ ["pointermove", 208.3, 0, 104.167, [], 3],
+ ["pointermove", 216.6, 0, 108.333, [], 3],
+ ["pointermove", 225, 0, 112.5, [], 3],
+ ["pointermove", 233.3, 0, 116.667, [], 3],
+ ["pointermove", 241.6, 0, 120.833, [], 3],
+ ["pointermove", 250, 0, 125, [], 3],
+ ["pointermove", 258.3, 0, 129.167, [], 3],
+ ["pointermove", 266.6, 0, 133.333, [], 3],
+ ["pointermove", 275, 0, 137.5, [], 3],
+ ["pointermove", 283.3, 0, 141.667, [], 3],
+ ["pointermove", 291.6, 0, 145.833, [], 3],
+ ["pointermove", 299.9, 0, 150, [], 3],
+ ["pointermove", 308.3, 0, 154.167, [], 3],
+ ["pointermove", 316.6, 0, 158.333, [], 3],
+ ["pointermove", 325, 0, 162.5, [], 3],
+ ["pointermove", 333.3, 0, 166.667, [], 3],
+ ["pointermove", 341.7, 0, 170.833, [], 3],
+ ["pointermove", 350, 0, 175, [], 3],
+ ["pointermove", 358.3, 0, 179.167, [], 3],
+ ["pointermove", 366.6, 0, 183.333, [], 3],
+ ["pointermove", 374.9, 0, 187.5, [], 3],
+ ["pointermove", 383.3, 0, 191.667, [], 3],
+ ["pointermove", 391.6, 0, 195.833, [], 3],
+ ["pointermove", 400, 0, 200, [], 3],
+ ["pointerup", 699.9, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-fling.json
new file mode 100644
index 0000000000..5022ff70b6
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-fling.json
@@ -0,0 +1,64 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "pen",
+ "coarse": false,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType pen) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 2000,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 16.667],
+ [16.667, 0, 33.333],
+ [25, 0, 50],
+ [33.333, 0, 66.667],
+ [41.667, 0, 83.333],
+ [50, 0, 100],
+ [58.333, 0, 116.667],
+ [66.667, 0, 133.333],
+ [75, 0, 150],
+ [83.333, 0, 166.667],
+ [91.667, 0, 183.333],
+ [100, 0, 200],
+ [108.333, 0, 216.667],
+ [116.667, 0, 233.333],
+ [125, 0, 250],
+ [133.333, 0, 266.667],
+ [141.667, 0, 283.333],
+ [150, 0, 300]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.3, 0, 16.667, [], 0],
+ ["pointermove", 16.6, 0, 33.333, [], 0],
+ ["pointermove", 25, 0, 50, [], 0],
+ ["pointermove", 33.3, 0, 66.667, [], 3],
+ ["pointermove", 41.6, 0, 83.333, [], 3],
+ ["pointermove", 50, 0, 100, [], 3],
+ ["pointermove", 58.3, 0, 116.667, [], 3],
+ ["pointermove", 66.7, 0, 133.333, [], 3],
+ ["pointermove", 74.9, 0, 150, [], 3],
+ ["pointermove", 83.3, 0, 166.667, [], 3],
+ ["pointermove", 91.7, 0, 183.333, [], 3],
+ ["pointermove", 99.9, 0, 200, [], 3],
+ ["pointermove", 108.2, 0, 216.667, [], 3],
+ ["pointermove", 116.6, 0, 233.333, [], 3],
+ ["pointermove", 125, 0, 250, [], 3],
+ ["pointermove", 133.3, 0, 266.667, [], 3],
+ ["pointermove", 141.6, 0, 283.333, [], 3],
+ ["pointermove", 149.9, 0, 300, [], 3],
+ ["pointerup", 149.9, 0, 300]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-slow.json
new file mode 100644
index 0000000000..d0d4d182d5
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-slow.json
@@ -0,0 +1,268 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "pen",
+ "coarse": false,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType pen) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 200,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 1.667],
+ [16.667, 0, 3.333],
+ [25, 0, 5],
+ [33.333, 0, 6.667],
+ [41.667, 0, 8.333],
+ [50, 0, 10],
+ [58.333, 0, 11.667],
+ [66.667, 0, 13.333],
+ [75, 0, 15],
+ [83.333, 0, 16.667],
+ [91.667, 0, 18.333],
+ [100, 0, 20],
+ [108.333, 0, 21.667],
+ [116.667, 0, 23.333],
+ [125, 0, 25],
+ [133.333, 0, 26.667],
+ [141.667, 0, 28.333],
+ [150, 0, 30],
+ [158.333, 0, 31.667],
+ [166.667, 0, 33.333],
+ [175, 0, 35],
+ [183.333, 0, 36.667],
+ [191.667, 0, 38.333],
+ [200, 0, 40],
+ [208.333, 0, 41.667],
+ [216.667, 0, 43.333],
+ [225, 0, 45],
+ [233.333, 0, 46.667],
+ [241.667, 0, 48.333],
+ [250, 0, 50],
+ [258.333, 0, 51.667],
+ [266.667, 0, 53.333],
+ [275, 0, 55],
+ [283.333, 0, 56.667],
+ [291.667, 0, 58.333],
+ [300, 0, 60],
+ [308.333, 0, 61.667],
+ [316.667, 0, 63.333],
+ [325, 0, 65],
+ [333.333, 0, 66.667],
+ [341.667, 0, 68.333],
+ [350, 0, 70],
+ [358.333, 0, 71.667],
+ [366.667, 0, 73.333],
+ [375, 0, 75],
+ [383.333, 0, 76.667],
+ [391.667, 0, 78.333],
+ [400, 0, 80],
+ [408.333, 0, 81.667],
+ [416.667, 0, 83.333],
+ [425, 0, 85],
+ [433.333, 0, 86.667],
+ [441.667, 0, 88.333],
+ [450, 0, 90],
+ [458.333, 0, 91.667],
+ [466.667, 0, 93.333],
+ [475, 0, 95],
+ [483.333, 0, 96.667],
+ [491.667, 0, 98.333],
+ [500, 0, 100],
+ [508.333, 0, 101.667],
+ [516.667, 0, 103.333],
+ [525, 0, 105],
+ [533.333, 0, 106.667],
+ [541.667, 0, 108.333],
+ [550, 0, 110],
+ [558.333, 0, 111.667],
+ [566.667, 0, 113.333],
+ [575, 0, 115],
+ [583.333, 0, 116.667],
+ [591.667, 0, 118.333],
+ [600, 0, 120],
+ [608.333, 0, 121.667],
+ [616.667, 0, 123.333],
+ [625, 0, 125],
+ [633.333, 0, 126.667],
+ [641.667, 0, 128.333],
+ [650, 0, 130],
+ [658.333, 0, 131.667],
+ [666.667, 0, 133.333],
+ [675, 0, 135],
+ [683.333, 0, 136.667],
+ [691.667, 0, 138.333],
+ [700, 0, 140],
+ [708.333, 0, 141.667],
+ [716.667, 0, 143.333],
+ [725, 0, 145],
+ [733.333, 0, 146.667],
+ [741.667, 0, 148.333],
+ [750, 0, 150],
+ [758.333, 0, 151.667],
+ [766.667, 0, 153.333],
+ [775, 0, 155],
+ [783.333, 0, 156.667],
+ [791.667, 0, 158.333],
+ [800, 0, 160],
+ [808.333, 0, 161.667],
+ [816.667, 0, 163.333],
+ [825, 0, 165],
+ [833.333, 0, 166.667],
+ [841.667, 0, 168.333],
+ [850, 0, 170],
+ [858.333, 0, 171.667],
+ [866.667, 0, 173.333],
+ [875, 0, 175],
+ [883.333, 0, 176.667],
+ [891.667, 0, 178.333],
+ [900, 0, 180],
+ [908.333, 0, 181.667],
+ [916.667, 0, 183.333],
+ [925, 0, 185],
+ [933.333, 0, 186.667],
+ [941.667, 0, 188.333],
+ [950, 0, 190],
+ [958.333, 0, 191.667],
+ [966.667, 0, 193.333],
+ [975, 0, 195],
+ [983.333, 0, 196.667],
+ [991.667, 0, 198.333],
+ [1000, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.4, 0, 1.667, [], 0],
+ ["pointermove", 16.7, 0, 3.333, [], 0],
+ ["pointermove", 25.1, 0, 5, [], 0],
+ ["pointermove", 33.4, 0, 6.667, [], 3],
+ ["pointermove", 41.8, 0, 8.333, [], 3],
+ ["pointermove", 50.1, 0, 10, [], 3],
+ ["pointermove", 58.4, 0, 11.667, [], 3],
+ ["pointermove", 66.7, 0, 13.333, [], 3],
+ ["pointermove", 75.1, 0, 15, [], 3],
+ ["pointermove", 83.4, 0, 16.667, [], 3],
+ ["pointermove", 91.7, 0, 18.333, [], 3],
+ ["pointermove", 100, 0, 20, [], 3],
+ ["pointermove", 108.4, 0, 21.667, [], 3],
+ ["pointermove", 116.7, 0, 23.333, [], 3],
+ ["pointermove", 125.1, 0, 25, [], 3],
+ ["pointermove", 133.4, 0, 26.667, [], 3],
+ ["pointermove", 141.7, 0, 28.333, [], 3],
+ ["pointermove", 150, 0, 30, [], 3],
+ ["pointermove", 158.4, 0, 31.667, [], 3],
+ ["pointermove", 166.7, 0, 33.333, [], 3],
+ ["pointermove", 175, 0, 35, [], 3],
+ ["pointermove", 183.3, 0, 36.667, [], 3],
+ ["pointermove", 191.7, 0, 38.333, [], 3],
+ ["pointermove", 200, 0, 40, [], 3],
+ ["pointermove", 208.4, 0, 41.667, [], 3],
+ ["pointermove", 216.7, 0, 43.333, [], 3],
+ ["pointermove", 225, 0, 45, [], 3],
+ ["pointermove", 233.4, 0, 46.667, [], 3],
+ ["pointermove", 241.7, 0, 48.333, [], 3],
+ ["pointermove", 250, 0, 50, [], 3],
+ ["pointermove", 258.4, 0, 51.667, [], 3],
+ ["pointermove", 266.7, 0, 53.333, [], 3],
+ ["pointermove", 275.1, 0, 55, [], 3],
+ ["pointermove", 283.4, 0, 56.667, [], 3],
+ ["pointermove", 291.7, 0, 58.333, [], 3],
+ ["pointermove", 300, 0, 60, [], 3],
+ ["pointermove", 308.4, 0, 61.667, [], 3],
+ ["pointermove", 316.7, 0, 63.333, [], 3],
+ ["pointermove", 325, 0, 65, [], 3],
+ ["pointermove", 333.4, 0, 66.667, [], 3],
+ ["pointermove", 341.7, 0, 68.333, [], 3],
+ ["pointermove", 350.1, 0, 70, [], 3],
+ ["pointermove", 358.4, 0, 71.667, [], 3],
+ ["pointermove", 366.8, 0, 73.333, [], 3],
+ ["pointermove", 375, 0, 75, [], 3],
+ ["pointermove", 383.4, 0, 76.667, [], 3],
+ ["pointermove", 391.8, 0, 78.333, [], 3],
+ ["pointermove", 400.1, 0, 80, [], 3],
+ ["pointermove", 408.4, 0, 81.667, [], 3],
+ ["pointermove", 416.7, 0, 83.333, [], 3],
+ ["pointermove", 425, 0, 85, [], 3],
+ ["pointermove", 433.4, 0, 86.667, [], 3],
+ ["pointermove", 441.7, 0, 88.333, [], 3],
+ ["pointermove", 450, 0, 90, [], 3],
+ ["pointermove", 458.3, 0, 91.667, [], 3],
+ ["pointermove", 466.7, 0, 93.333, [], 3],
+ ["pointermove", 475.1, 0, 95, [], 3],
+ ["pointermove", 483.4, 0, 96.667, [], 3],
+ ["pointermove", 491.8, 0, 98.333, [], 3],
+ ["pointermove", 500.1, 0, 100, [], 3],
+ ["pointermove", 508.4, 0, 101.667, [], 3],
+ ["pointermove", 516.7, 0, 103.333, [], 3],
+ ["pointermove", 525.1, 0, 105, [], 3],
+ ["pointermove", 533.4, 0, 106.667, [], 3],
+ ["pointermove", 541.7, 0, 108.333, [], 3],
+ ["pointermove", 550, 0, 110, [], 3],
+ ["pointermove", 558.3, 0, 111.667, [], 3],
+ ["pointermove", 566.7, 0, 113.333, [], 3],
+ ["pointermove", 575, 0, 115, [], 3],
+ ["pointermove", 583.4, 0, 116.667, [], 3],
+ ["pointermove", 591.7, 0, 118.333, [], 3],
+ ["pointermove", 600, 0, 120, [], 3],
+ ["pointermove", 608.4, 0, 121.667, [], 3],
+ ["pointermove", 616.7, 0, 123.333, [], 3],
+ ["pointermove", 625.1, 0, 125, [], 3],
+ ["pointermove", 633.4, 0, 126.667, [], 3],
+ ["pointermove", 641.7, 0, 128.333, [], 3],
+ ["pointermove", 650, 0, 130, [], 3],
+ ["pointermove", 658.4, 0, 131.667, [], 3],
+ ["pointermove", 666.7, 0, 133.333, [], 3],
+ ["pointermove", 675.1, 0, 135, [], 3],
+ ["pointermove", 683.4, 0, 136.667, [], 3],
+ ["pointermove", 691.7, 0, 138.333, [], 3],
+ ["pointermove", 700.1, 0, 140, [], 3],
+ ["pointermove", 708.4, 0, 141.667, [], 3],
+ ["pointermove", 716.7, 0, 143.333, [], 3],
+ ["pointermove", 725.1, 0, 145, [], 3],
+ ["pointermove", 733.4, 0, 146.667, [], 3],
+ ["pointermove", 741.7, 0, 148.333, [], 3],
+ ["pointermove", 750, 0, 150, [], 3],
+ ["pointermove", 758.4, 0, 151.667, [], 3],
+ ["pointermove", 766.7, 0, 153.333, [], 3],
+ ["pointermove", 775, 0, 155, [], 3],
+ ["pointermove", 783.4, 0, 156.667, [], 3],
+ ["pointermove", 791.8, 0, 158.333, [], 3],
+ ["pointermove", 800.1, 0, 160, [], 3],
+ ["pointermove", 808.4, 0, 161.667, [], 3],
+ ["pointermove", 816.7, 0, 163.333, [], 3],
+ ["pointermove", 825.1, 0, 165, [], 3],
+ ["pointermove", 833.4, 0, 166.667, [], 3],
+ ["pointermove", 841.7, 0, 168.333, [], 3],
+ ["pointermove", 850.1, 0, 170, [], 3],
+ ["pointermove", 858.4, 0, 171.667, [], 3],
+ ["pointermove", 866.7, 0, 173.333, [], 3],
+ ["pointermove", 875.1, 0, 175, [], 3],
+ ["pointermove", 883.4, 0, 176.667, [], 3],
+ ["pointermove", 891.7, 0, 178.333, [], 3],
+ ["pointermove", 900.1, 0, 180, [], 3],
+ ["pointermove", 908.4, 0, 181.667, [], 3],
+ ["pointermove", 916.7, 0, 183.333, [], 3],
+ ["pointermove", 925, 0, 185, [], 3],
+ ["pointermove", 933.4, 0, 186.667, [], 3],
+ ["pointermove", 941.7, 0, 188.333, [], 3],
+ ["pointermove", 950.1, 0, 190, [], 3],
+ ["pointermove", 958.4, 0, 191.667, [], 3],
+ ["pointermove", 966.7, 0, 193.333, [], 3],
+ ["pointermove", 975.1, 0, 195, [], 3],
+ ["pointermove", 983.4, 0, 196.667, [], 3],
+ ["pointermove", 991.7, 0, 198.333, [], 3],
+ ["pointermove", 1000.1, 0, 200, [], 3],
+ ["pointerup", 1000.1, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-stop-release.json
new file mode 100644
index 0000000000..a38580b531
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-pen-stop-release.json
@@ -0,0 +1,124 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "pen",
+ "coarse": false,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchMouseEvent (pointerType pen) at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 500,
+ "restMs": 300,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 4.167],
+ [16.667, 0, 8.333],
+ [25, 0, 12.5],
+ [33.333, 0, 16.667],
+ [41.667, 0, 20.833],
+ [50, 0, 25],
+ [58.333, 0, 29.167],
+ [66.667, 0, 33.333],
+ [75, 0, 37.5],
+ [83.333, 0, 41.667],
+ [91.667, 0, 45.833],
+ [100, 0, 50],
+ [108.333, 0, 54.167],
+ [116.667, 0, 58.333],
+ [125, 0, 62.5],
+ [133.333, 0, 66.667],
+ [141.667, 0, 70.833],
+ [150, 0, 75],
+ [158.333, 0, 79.167],
+ [166.667, 0, 83.333],
+ [175, 0, 87.5],
+ [183.333, 0, 91.667],
+ [191.667, 0, 95.833],
+ [200, 0, 100],
+ [208.333, 0, 104.167],
+ [216.667, 0, 108.333],
+ [225, 0, 112.5],
+ [233.333, 0, 116.667],
+ [241.667, 0, 120.833],
+ [250, 0, 125],
+ [258.333, 0, 129.167],
+ [266.667, 0, 133.333],
+ [275, 0, 137.5],
+ [283.333, 0, 141.667],
+ [291.667, 0, 145.833],
+ [300, 0, 150],
+ [308.333, 0, 154.167],
+ [316.667, 0, 158.333],
+ [325, 0, 162.5],
+ [333.333, 0, 166.667],
+ [341.667, 0, 170.833],
+ [350, 0, 175],
+ [358.333, 0, 179.167],
+ [366.667, 0, 183.333],
+ [375, 0, 187.5],
+ [383.333, 0, 191.667],
+ [391.667, 0, 195.833],
+ [400, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 300,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["pointermove", 8.4, 0, 4.167, [], 0],
+ ["pointermove", 16.7, 0, 8.333, [], 0],
+ ["pointermove", 25.1, 0, 12.5, [], 0],
+ ["pointermove", 33.4, 0, 16.667, [], 3],
+ ["pointermove", 41.7, 0, 20.833, [], 3],
+ ["pointermove", 50.1, 0, 25, [], 3],
+ ["pointermove", 58.4, 0, 29.167, [], 3],
+ ["pointermove", 66.7, 0, 33.333, [], 3],
+ ["pointermove", 75, 0, 37.5, [], 3],
+ ["pointermove", 83.3, 0, 41.667, [], 3],
+ ["pointermove", 91.8, 0, 45.833, [], 3],
+ ["pointermove", 100, 0, 50, [], 3],
+ ["pointermove", 108.3, 0, 54.167, [], 3],
+ ["pointermove", 116.7, 0, 58.333, [], 3],
+ ["pointermove", 125.1, 0, 62.5, [], 3],
+ ["pointermove", 133.4, 0, 66.667, [], 3],
+ ["pointermove", 141.7, 0, 70.833, [], 3],
+ ["pointermove", 150, 0, 75, [], 3],
+ ["pointermove", 158.4, 0, 79.167, [], 3],
+ ["pointermove", 166.7, 0, 83.333, [], 3],
+ ["pointermove", 175, 0, 87.5, [], 3],
+ ["pointermove", 183.4, 0, 91.667, [], 3],
+ ["pointermove", 191.7, 0, 95.833, [], 3],
+ ["pointermove", 200.1, 0, 100, [], 3],
+ ["pointermove", 208.4, 0, 104.167, [], 3],
+ ["pointermove", 216.7, 0, 108.333, [], 3],
+ ["pointermove", 225.1, 0, 112.5, [], 3],
+ ["pointermove", 233.4, 0, 116.667, [], 3],
+ ["pointermove", 241.7, 0, 120.833, [], 3],
+ ["pointermove", 250.1, 0, 125, [], 3],
+ ["pointermove", 258.4, 0, 129.167, [], 3],
+ ["pointermove", 266.7, 0, 133.333, [], 3],
+ ["pointermove", 275, 0, 137.5, [], 3],
+ ["pointermove", 283.4, 0, 141.667, [], 3],
+ ["pointermove", 291.7, 0, 145.833, [], 3],
+ ["pointermove", 300, 0, 150, [], 3],
+ ["pointermove", 308.3, 0, 154.167, [], 3],
+ ["pointermove", 316.8, 0, 158.333, [], 3],
+ ["pointermove", 325.1, 0, 162.5, [], 3],
+ ["pointermove", 333.4, 0, 166.667, [], 3],
+ ["pointermove", 341.7, 0, 170.833, [], 3],
+ ["pointermove", 350, 0, 175, [], 3],
+ ["pointermove", 358.4, 0, 179.167, [], 3],
+ ["pointermove", 366.8, 0, 183.333, [], 3],
+ ["pointermove", 375, 0, 187.5, [], 3],
+ ["pointermove", 383.3, 0, 191.667, [], 3],
+ ["pointermove", 391.7, 0, 195.833, [], 3],
+ ["pointermove", 400.1, 0, 200, [], 3],
+ ["pointerup", 700.1, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-fling.json
new file mode 100644
index 0000000000..80ad918296
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-fling.json
@@ -0,0 +1,84 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchTouchEvent at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 2000,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 16.667],
+ [16.667, 0, 33.333],
+ [25, 0, 50],
+ [33.333, 0, 66.667],
+ [41.667, 0, 83.333],
+ [50, 0, 100],
+ [58.333, 0, 116.667],
+ [66.667, 0, 133.333],
+ [75, 0, 150],
+ [83.333, 0, 166.667],
+ [91.667, 0, 183.333],
+ [100, 0, 200],
+ [108.333, 0, 216.667],
+ [116.667, 0, 233.333],
+ [125, 0, 250],
+ [133.333, 0, 266.667],
+ [141.667, 0, 283.333],
+ [150, 0, 300]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 8.3, 0, 16.667, [], 0],
+ ["touchmove", 8.3, 0, 16.667],
+ ["pointermove", 16.7, 0, 33.333, [], 0],
+ ["touchmove", 16.7, 0, 33.333],
+ ["pointermove", 25, 0, 50, [], 0],
+ ["touchmove", 25, 0, 50],
+ ["pointermove", 33.4, 0, 66.667, [], 3],
+ ["touchmove", 33.4, 0, 66.667],
+ ["pointermove", 41.7, 0, 83.333, [], 3],
+ ["touchmove", 41.7, 0, 83.333],
+ ["pointermove", 50.1, 0, 100, [], 3],
+ ["touchmove", 50.1, 0, 100],
+ ["pointermove", 58.4, 0, 116.667, [], 3],
+ ["touchmove", 58.4, 0, 116.667],
+ ["pointermove", 66.7, 0, 133.333, [], 3],
+ ["touchmove", 66.7, 0, 133.333],
+ ["pointermove", 75.1, 0, 150, [], 3],
+ ["touchmove", 75.1, 0, 150],
+ ["pointermove", 83.4, 0, 166.667, [], 3],
+ ["touchmove", 83.4, 0, 166.667],
+ ["pointermove", 91.7, 0, 183.333, [], 3],
+ ["touchmove", 91.7, 0, 183.333],
+ ["pointermove", 100, 0, 200, [], 3],
+ ["touchmove", 100, 0, 200],
+ ["pointermove", 108.4, 0, 216.667, [], 3],
+ ["touchmove", 108.4, 0, 216.667],
+ ["pointermove", 116.7, 0, 233.333, [], 3],
+ ["touchmove", 116.7, 0, 233.333],
+ ["pointermove", 125, 0, 250, [], 3],
+ ["touchmove", 125, 0, 250],
+ ["pointermove", 133.4, 0, 266.667, [], 3],
+ ["touchmove", 133.4, 0, 266.667],
+ ["pointermove", 141.8, 0, 283.333, [], 3],
+ ["touchmove", 141.8, 0, 283.333],
+ ["pointermove", 150, 0, 300, [], 3],
+ ["touchmove", 150, 0, 300],
+ ["pointerup", 150, 0, 300],
+ ["touchend", 150, 0, 300]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-slow.json
new file mode 100644
index 0000000000..c99c91bb03
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-slow.json
@@ -0,0 +1,381 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchTouchEvent at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 200,
+ "restMs": 0,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 1.667],
+ [16.667, 0, 3.333],
+ [25, 0, 5],
+ [33.333, 0, 6.667],
+ [41.667, 0, 8.333],
+ [50, 0, 10],
+ [58.333, 0, 11.667],
+ [66.667, 0, 13.333],
+ [75, 0, 15],
+ [83.333, 0, 16.667],
+ [91.667, 0, 18.333],
+ [100, 0, 20],
+ [108.333, 0, 21.667],
+ [116.667, 0, 23.333],
+ [125, 0, 25],
+ [133.333, 0, 26.667],
+ [141.667, 0, 28.333],
+ [150, 0, 30],
+ [158.333, 0, 31.667],
+ [166.667, 0, 33.333],
+ [175, 0, 35],
+ [183.333, 0, 36.667],
+ [191.667, 0, 38.333],
+ [200, 0, 40],
+ [208.333, 0, 41.667],
+ [216.667, 0, 43.333],
+ [225, 0, 45],
+ [233.333, 0, 46.667],
+ [241.667, 0, 48.333],
+ [250, 0, 50],
+ [258.333, 0, 51.667],
+ [266.667, 0, 53.333],
+ [275, 0, 55],
+ [283.333, 0, 56.667],
+ [291.667, 0, 58.333],
+ [300, 0, 60],
+ [308.333, 0, 61.667],
+ [316.667, 0, 63.333],
+ [325, 0, 65],
+ [333.333, 0, 66.667],
+ [341.667, 0, 68.333],
+ [350, 0, 70],
+ [358.333, 0, 71.667],
+ [366.667, 0, 73.333],
+ [375, 0, 75],
+ [383.333, 0, 76.667],
+ [391.667, 0, 78.333],
+ [400, 0, 80],
+ [408.333, 0, 81.667],
+ [416.667, 0, 83.333],
+ [425, 0, 85],
+ [433.333, 0, 86.667],
+ [441.667, 0, 88.333],
+ [450, 0, 90],
+ [458.333, 0, 91.667],
+ [466.667, 0, 93.333],
+ [475, 0, 95],
+ [483.333, 0, 96.667],
+ [491.667, 0, 98.333],
+ [500, 0, 100],
+ [508.333, 0, 101.667],
+ [516.667, 0, 103.333],
+ [525, 0, 105],
+ [533.333, 0, 106.667],
+ [541.667, 0, 108.333],
+ [550, 0, 110],
+ [558.333, 0, 111.667],
+ [566.667, 0, 113.333],
+ [575, 0, 115],
+ [583.333, 0, 116.667],
+ [591.667, 0, 118.333],
+ [600, 0, 120],
+ [608.333, 0, 121.667],
+ [616.667, 0, 123.333],
+ [625, 0, 125],
+ [633.333, 0, 126.667],
+ [641.667, 0, 128.333],
+ [650, 0, 130],
+ [658.333, 0, 131.667],
+ [666.667, 0, 133.333],
+ [675, 0, 135],
+ [683.333, 0, 136.667],
+ [691.667, 0, 138.333],
+ [700, 0, 140],
+ [708.333, 0, 141.667],
+ [716.667, 0, 143.333],
+ [725, 0, 145],
+ [733.333, 0, 146.667],
+ [741.667, 0, 148.333],
+ [750, 0, 150],
+ [758.333, 0, 151.667],
+ [766.667, 0, 153.333],
+ [775, 0, 155],
+ [783.333, 0, 156.667],
+ [791.667, 0, 158.333],
+ [800, 0, 160],
+ [808.333, 0, 161.667],
+ [816.667, 0, 163.333],
+ [825, 0, 165],
+ [833.333, 0, 166.667],
+ [841.667, 0, 168.333],
+ [850, 0, 170],
+ [858.333, 0, 171.667],
+ [866.667, 0, 173.333],
+ [875, 0, 175],
+ [883.333, 0, 176.667],
+ [891.667, 0, 178.333],
+ [900, 0, 180],
+ [908.333, 0, 181.667],
+ [916.667, 0, 183.333],
+ [925, 0, 185],
+ [933.333, 0, 186.667],
+ [941.667, 0, 188.333],
+ [950, 0, 190],
+ [958.333, 0, 191.667],
+ [966.667, 0, 193.333],
+ [975, 0, 195],
+ [983.333, 0, 196.667],
+ [991.667, 0, 198.333],
+ [1000, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 0,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 8.3, 0, 1.667, [], 0],
+ ["pointermove", 16.6, 0, 3.333, [], 0],
+ ["pointermove", 24.9, 0, 5, [], 0],
+ ["pointermove", 33.3, 0, 6.667, [], 3],
+ ["pointermove", 41.6, 0, 8.333, [], 3],
+ ["pointermove", 50, 0, 10, [], 3],
+ ["pointermove", 58.3, 0, 11.667, [], 3],
+ ["pointermove", 66.7, 0, 13.333, [], 3],
+ ["pointermove", 75, 0, 15, [], 3],
+ ["pointermove", 83.3, 0, 16.667, [], 3],
+ ["touchmove", 83.3, 0, 16.667],
+ ["pointermove", 91.6, 0, 18.333, [], 3],
+ ["touchmove", 91.6, 0, 18.333],
+ ["pointermove", 100, 0, 20, [], 3],
+ ["touchmove", 100, 0, 20],
+ ["pointermove", 108.3, 0, 21.667, [], 3],
+ ["touchmove", 108.3, 0, 21.667],
+ ["pointermove", 116.6, 0, 23.333, [], 3],
+ ["touchmove", 116.6, 0, 23.333],
+ ["pointermove", 125, 0, 25, [], 3],
+ ["touchmove", 125, 0, 25],
+ ["pointermove", 133.3, 0, 26.667, [], 3],
+ ["touchmove", 133.3, 0, 26.667],
+ ["pointermove", 141.6, 0, 28.333, [], 3],
+ ["touchmove", 141.6, 0, 28.333],
+ ["pointermove", 150, 0, 30, [], 3],
+ ["touchmove", 150, 0, 30],
+ ["pointermove", 158.3, 0, 31.667, [], 3],
+ ["touchmove", 158.3, 0, 31.667],
+ ["pointermove", 166.6, 0, 33.333, [], 3],
+ ["touchmove", 166.6, 0, 33.333],
+ ["pointermove", 175, 0, 35, [], 3],
+ ["touchmove", 175, 0, 35],
+ ["pointermove", 183.3, 0, 36.667, [], 3],
+ ["touchmove", 183.3, 0, 36.667],
+ ["pointermove", 191.6, 0, 38.333, [], 3],
+ ["touchmove", 191.6, 0, 38.333],
+ ["pointermove", 199.9, 0, 40, [], 3],
+ ["touchmove", 199.9, 0, 40],
+ ["pointermove", 208.3, 0, 41.667, [], 3],
+ ["touchmove", 208.3, 0, 41.667],
+ ["pointermove", 216.6, 0, 43.333, [], 3],
+ ["touchmove", 216.6, 0, 43.333],
+ ["pointermove", 225, 0, 45, [], 3],
+ ["touchmove", 225, 0, 45],
+ ["pointermove", 233.3, 0, 46.667, [], 3],
+ ["touchmove", 233.3, 0, 46.667],
+ ["pointermove", 241.6, 0, 48.333, [], 3],
+ ["touchmove", 241.6, 0, 48.333],
+ ["pointermove", 249.9, 0, 50, [], 3],
+ ["touchmove", 249.9, 0, 50],
+ ["pointermove", 258.2, 0, 51.667, [], 3],
+ ["touchmove", 258.2, 0, 51.667],
+ ["pointermove", 266.6, 0, 53.333, [], 3],
+ ["touchmove", 266.6, 0, 53.333],
+ ["pointermove", 274.9, 0, 55, [], 3],
+ ["touchmove", 274.9, 0, 55],
+ ["pointermove", 283.3, 0, 56.667, [], 3],
+ ["touchmove", 283.3, 0, 56.667],
+ ["pointermove", 291.6, 0, 58.333, [], 3],
+ ["touchmove", 291.6, 0, 58.333],
+ ["pointermove", 299.9, 0, 60, [], 3],
+ ["touchmove", 299.9, 0, 60],
+ ["pointermove", 308.3, 0, 61.667, [], 3],
+ ["touchmove", 308.3, 0, 61.667],
+ ["pointermove", 316.6, 0, 63.333, [], 3],
+ ["touchmove", 316.6, 0, 63.333],
+ ["pointermove", 325, 0, 65, [], 3],
+ ["touchmove", 325, 0, 65],
+ ["pointermove", 333.3, 0, 66.667, [], 3],
+ ["touchmove", 333.3, 0, 66.667],
+ ["pointermove", 341.6, 0, 68.333, [], 3],
+ ["touchmove", 341.6, 0, 68.333],
+ ["pointermove", 350, 0, 70, [], 3],
+ ["touchmove", 350, 0, 70],
+ ["pointermove", 358.2, 0, 71.667, [], 3],
+ ["touchmove", 358.2, 0, 71.667],
+ ["pointermove", 366.6, 0, 73.333, [], 3],
+ ["touchmove", 366.6, 0, 73.333],
+ ["pointermove", 374.9, 0, 75, [], 3],
+ ["touchmove", 374.9, 0, 75],
+ ["pointermove", 383.3, 0, 76.667, [], 3],
+ ["touchmove", 383.3, 0, 76.667],
+ ["pointermove", 391.6, 0, 78.333, [], 3],
+ ["touchmove", 391.6, 0, 78.333],
+ ["pointermove", 399.9, 0, 80, [], 3],
+ ["touchmove", 399.9, 0, 80],
+ ["pointermove", 408.3, 0, 81.667, [], 3],
+ ["touchmove", 408.3, 0, 81.667],
+ ["pointermove", 416.6, 0, 83.333, [], 3],
+ ["touchmove", 416.6, 0, 83.333],
+ ["pointermove", 424.9, 0, 85, [], 3],
+ ["touchmove", 424.9, 0, 85],
+ ["pointermove", 433.3, 0, 86.667, [], 3],
+ ["touchmove", 433.3, 0, 86.667],
+ ["pointermove", 441.6, 0, 88.333, [], 3],
+ ["touchmove", 441.6, 0, 88.333],
+ ["pointermove", 449.9, 0, 90, [], 3],
+ ["touchmove", 449.9, 0, 90],
+ ["pointermove", 458.3, 0, 91.667, [], 3],
+ ["touchmove", 458.3, 0, 91.667],
+ ["pointermove", 466.6, 0, 93.333, [], 3],
+ ["touchmove", 466.6, 0, 93.333],
+ ["pointermove", 475, 0, 95, [], 3],
+ ["touchmove", 475, 0, 95],
+ ["pointermove", 483.2, 0, 96.667, [], 3],
+ ["touchmove", 483.2, 0, 96.667],
+ ["pointermove", 491.6, 0, 98.333, [], 3],
+ ["touchmove", 491.6, 0, 98.333],
+ ["pointermove", 499.9, 0, 100, [], 3],
+ ["touchmove", 499.9, 0, 100],
+ ["pointermove", 508.3, 0, 101.667, [], 3],
+ ["touchmove", 508.3, 0, 101.667],
+ ["pointermove", 516.7, 0, 103.333, [], 3],
+ ["touchmove", 516.7, 0, 103.333],
+ ["pointermove", 525, 0, 105, [], 3],
+ ["touchmove", 525, 0, 105],
+ ["pointermove", 533.3, 0, 106.667, [], 3],
+ ["touchmove", 533.3, 0, 106.667],
+ ["pointermove", 541.6, 0, 108.333, [], 3],
+ ["touchmove", 541.6, 0, 108.333],
+ ["pointermove", 549.9, 0, 110, [], 3],
+ ["touchmove", 549.9, 0, 110],
+ ["pointermove", 558.2, 0, 111.667, [], 3],
+ ["touchmove", 558.2, 0, 111.667],
+ ["pointermove", 566.6, 0, 113.333, [], 3],
+ ["touchmove", 566.6, 0, 113.333],
+ ["pointermove", 574.9, 0, 115, [], 3],
+ ["touchmove", 574.9, 0, 115],
+ ["pointermove", 583.3, 0, 116.667, [], 3],
+ ["touchmove", 583.3, 0, 116.667],
+ ["pointermove", 591.6, 0, 118.333, [], 3],
+ ["touchmove", 591.6, 0, 118.333],
+ ["pointermove", 599.9, 0, 120, [], 3],
+ ["touchmove", 599.9, 0, 120],
+ ["pointermove", 608.2, 0, 121.667, [], 3],
+ ["touchmove", 608.2, 0, 121.667],
+ ["pointermove", 616.6, 0, 123.333, [], 3],
+ ["touchmove", 616.6, 0, 123.333],
+ ["pointermove", 625, 0, 125, [], 3],
+ ["touchmove", 625, 0, 125],
+ ["pointermove", 633.2, 0, 126.667, [], 3],
+ ["touchmove", 633.2, 0, 126.667],
+ ["pointermove", 641.6, 0, 128.333, [], 3],
+ ["touchmove", 641.6, 0, 128.333],
+ ["pointermove", 649.9, 0, 130, [], 3],
+ ["touchmove", 649.9, 0, 130],
+ ["pointermove", 658.3, 0, 131.667, [], 3],
+ ["touchmove", 658.3, 0, 131.667],
+ ["pointermove", 666.7, 0, 133.333, [], 3],
+ ["touchmove", 666.7, 0, 133.333],
+ ["pointermove", 674.9, 0, 135, [], 3],
+ ["touchmove", 674.9, 0, 135],
+ ["pointermove", 683.3, 0, 136.667, [], 3],
+ ["touchmove", 683.3, 0, 136.667],
+ ["pointermove", 691.6, 0, 138.333, [], 3],
+ ["touchmove", 691.6, 0, 138.333],
+ ["pointermove", 699.9, 0, 140, [], 3],
+ ["touchmove", 699.9, 0, 140],
+ ["pointermove", 708.2, 0, 141.667, [], 3],
+ ["touchmove", 708.2, 0, 141.667],
+ ["pointermove", 716.6, 0, 143.333, [], 3],
+ ["touchmove", 716.6, 0, 143.333],
+ ["pointermove", 724.9, 0, 145, [], 3],
+ ["touchmove", 724.9, 0, 145],
+ ["pointermove", 733.3, 0, 146.667, [], 3],
+ ["touchmove", 733.3, 0, 146.667],
+ ["pointermove", 741.6, 0, 148.333, [], 3],
+ ["touchmove", 741.6, 0, 148.333],
+ ["pointermove", 749.9, 0, 150, [], 3],
+ ["touchmove", 749.9, 0, 150],
+ ["pointermove", 758.3, 0, 151.667, [], 3],
+ ["touchmove", 758.3, 0, 151.667],
+ ["pointermove", 766.7, 0, 153.333, [], 3],
+ ["touchmove", 766.7, 0, 153.333],
+ ["pointermove", 775, 0, 155, [], 3],
+ ["touchmove", 775, 0, 155],
+ ["pointermove", 783.2, 0, 156.667, [], 3],
+ ["touchmove", 783.2, 0, 156.667],
+ ["pointermove", 791.7, 0, 158.333, [], 3],
+ ["touchmove", 791.7, 0, 158.333],
+ ["pointermove", 799.9, 0, 160, [], 3],
+ ["touchmove", 799.9, 0, 160],
+ ["pointermove", 808.3, 0, 161.667, [], 3],
+ ["touchmove", 808.3, 0, 161.667],
+ ["pointermove", 816.6, 0, 163.333, [], 3],
+ ["touchmove", 816.6, 0, 163.333],
+ ["pointermove", 825, 0, 165, [], 3],
+ ["touchmove", 825, 0, 165],
+ ["pointermove", 833.3, 0, 166.667, [], 3],
+ ["touchmove", 833.3, 0, 166.667],
+ ["pointermove", 841.6, 0, 168.333, [], 3],
+ ["touchmove", 841.6, 0, 168.333],
+ ["pointermove", 850, 0, 170, [], 3],
+ ["touchmove", 850, 0, 170],
+ ["pointermove", 858.3, 0, 171.667, [], 3],
+ ["touchmove", 858.3, 0, 171.667],
+ ["pointermove", 866.6, 0, 173.333, [], 3],
+ ["touchmove", 866.6, 0, 173.333],
+ ["pointermove", 875, 0, 175, [], 3],
+ ["touchmove", 875, 0, 175],
+ ["pointermove", 883.3, 0, 176.667, [], 3],
+ ["touchmove", 883.3, 0, 176.667],
+ ["pointermove", 891.6, 0, 178.333, [], 3],
+ ["touchmove", 891.6, 0, 178.333],
+ ["pointermove", 900, 0, 180, [], 3],
+ ["touchmove", 900, 0, 180],
+ ["pointermove", 908.3, 0, 181.667, [], 3],
+ ["touchmove", 908.3, 0, 181.667],
+ ["pointermove", 916.6, 0, 183.333, [], 3],
+ ["touchmove", 916.6, 0, 183.333],
+ ["pointermove", 924.9, 0, 185, [], 3],
+ ["touchmove", 924.9, 0, 185],
+ ["pointermove", 933.3, 0, 186.667, [], 3],
+ ["touchmove", 933.3, 0, 186.667],
+ ["pointermove", 941.6, 0, 188.333, [], 3],
+ ["touchmove", 941.6, 0, 188.333],
+ ["pointermove", 949.9, 0, 190, [], 3],
+ ["touchmove", 949.9, 0, 190],
+ ["pointermove", 958.2, 0, 191.667, [], 3],
+ ["touchmove", 958.2, 0, 191.667],
+ ["pointermove", 966.6, 0, 193.333, [], 3],
+ ["touchmove", 966.6, 0, 193.333],
+ ["pointermove", 974.9, 0, 195, [], 3],
+ ["touchmove", 974.9, 0, 195],
+ ["pointermove", 983.3, 0, 196.667, [], 3],
+ ["touchmove", 983.3, 0, 196.667],
+ ["pointermove", 991.6, 0, 198.333, [], 3],
+ ["touchmove", 991.6, 0, 198.333],
+ ["pointermove", 1000, 0, 200, [], 3],
+ ["touchmove", 1000, 0, 200],
+ ["pointerup", 1000, 0, 200],
+ ["touchend", 1000, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-stop-release.json
new file mode 100644
index 0000000000..5f841e9d78
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/desktop-chromium-touch-stop-release.json
@@ -0,0 +1,171 @@
+{
+ "schema": 1,
+ "platform": "desktop, headless",
+ "browser": "Chromium 149.0.7827.55",
+ "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/149.0.7827.55 Safari/537.36",
+ "dpr": 1,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "CDP Input.dispatchTouchEvent at 120 Hz, each stamped at its scheduled time, headless Chromium 149.0.7827.55, desktop",
+ "hz": 120,
+ "speed": 500,
+ "restMs": 300,
+ "points": [
+ [0, 0, 0],
+ [8.333, 0, 4.167],
+ [16.667, 0, 8.333],
+ [25, 0, 12.5],
+ [33.333, 0, 16.667],
+ [41.667, 0, 20.833],
+ [50, 0, 25],
+ [58.333, 0, 29.167],
+ [66.667, 0, 33.333],
+ [75, 0, 37.5],
+ [83.333, 0, 41.667],
+ [91.667, 0, 45.833],
+ [100, 0, 50],
+ [108.333, 0, 54.167],
+ [116.667, 0, 58.333],
+ [125, 0, 62.5],
+ [133.333, 0, 66.667],
+ [141.667, 0, 70.833],
+ [150, 0, 75],
+ [158.333, 0, 79.167],
+ [166.667, 0, 83.333],
+ [175, 0, 87.5],
+ [183.333, 0, 91.667],
+ [191.667, 0, 95.833],
+ [200, 0, 100],
+ [208.333, 0, 104.167],
+ [216.667, 0, 108.333],
+ [225, 0, 112.5],
+ [233.333, 0, 116.667],
+ [241.667, 0, 120.833],
+ [250, 0, 125],
+ [258.333, 0, 129.167],
+ [266.667, 0, 133.333],
+ [275, 0, 137.5],
+ [283.333, 0, 141.667],
+ [291.667, 0, 145.833],
+ [300, 0, 150],
+ [308.333, 0, 154.167],
+ [316.667, 0, 158.333],
+ [325, 0, 162.5],
+ [333.333, 0, 166.667],
+ [341.667, 0, 170.833],
+ [350, 0, 175],
+ [358.333, 0, 179.167],
+ [366.667, 0, 183.333],
+ [375, 0, 187.5],
+ [383.333, 0, 191.667],
+ [391.667, 0, 195.833],
+ [400, 0, 200]
+ ]
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 299.9,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 8.3, 0, 4.167, [], 0],
+ ["pointermove", 16.7, 0, 8.333, [], 0],
+ ["pointermove", 25.1, 0, 12.5, [], 0],
+ ["pointermove", 33.4, 0, 16.667, [], 3],
+ ["touchmove", 33.4, 0, 16.667],
+ ["pointermove", 41.7, 0, 20.833, [], 3],
+ ["touchmove", 41.7, 0, 20.833],
+ ["pointermove", 50.1, 0, 25, [], 3],
+ ["touchmove", 50.1, 0, 25],
+ ["pointermove", 58.4, 0, 29.167, [], 3],
+ ["touchmove", 58.4, 0, 29.167],
+ ["pointermove", 66.7, 0, 33.333, [], 3],
+ ["touchmove", 66.7, 0, 33.333],
+ ["pointermove", 75, 0, 37.5, [], 3],
+ ["touchmove", 75, 0, 37.5],
+ ["pointermove", 83.4, 0, 41.667, [], 3],
+ ["touchmove", 83.4, 0, 41.667],
+ ["pointermove", 91.7, 0, 45.833, [], 3],
+ ["touchmove", 91.7, 0, 45.833],
+ ["pointermove", 100, 0, 50, [], 3],
+ ["touchmove", 100, 0, 50],
+ ["pointermove", 108.3, 0, 54.167, [], 3],
+ ["touchmove", 108.3, 0, 54.167],
+ ["pointermove", 116.7, 0, 58.333, [], 3],
+ ["touchmove", 116.7, 0, 58.333],
+ ["pointermove", 125, 0, 62.5, [], 3],
+ ["touchmove", 125, 0, 62.5],
+ ["pointermove", 133.3, 0, 66.667, [], 3],
+ ["touchmove", 133.3, 0, 66.667],
+ ["pointermove", 141.7, 0, 70.833, [], 3],
+ ["touchmove", 141.7, 0, 70.833],
+ ["pointermove", 150, 0, 75, [], 3],
+ ["touchmove", 150, 0, 75],
+ ["pointermove", 158.4, 0, 79.167, [], 3],
+ ["touchmove", 158.4, 0, 79.167],
+ ["pointermove", 166.8, 0, 83.333, [], 3],
+ ["touchmove", 166.8, 0, 83.333],
+ ["pointermove", 175.1, 0, 87.5, [], 3],
+ ["touchmove", 175.1, 0, 87.5],
+ ["pointermove", 183.4, 0, 91.667, [], 3],
+ ["touchmove", 183.4, 0, 91.667],
+ ["pointermove", 191.7, 0, 95.833, [], 3],
+ ["touchmove", 191.7, 0, 95.833],
+ ["pointermove", 200, 0, 100, [], 3],
+ ["touchmove", 200, 0, 100],
+ ["pointermove", 208.4, 0, 104.167, [], 3],
+ ["touchmove", 208.4, 0, 104.167],
+ ["pointermove", 216.7, 0, 108.333, [], 3],
+ ["touchmove", 216.7, 0, 108.333],
+ ["pointermove", 225.1, 0, 112.5, [], 3],
+ ["touchmove", 225.1, 0, 112.5],
+ ["pointermove", 233.4, 0, 116.667, [], 3],
+ ["touchmove", 233.4, 0, 116.667],
+ ["pointermove", 241.7, 0, 120.833, [], 3],
+ ["touchmove", 241.7, 0, 120.833],
+ ["pointermove", 250, 0, 125, [], 3],
+ ["touchmove", 250, 0, 125],
+ ["pointermove", 258.4, 0, 129.167, [], 3],
+ ["touchmove", 258.4, 0, 129.167],
+ ["pointermove", 266.7, 0, 133.333, [], 3],
+ ["touchmove", 266.7, 0, 133.333],
+ ["pointermove", 275, 0, 137.5, [], 3],
+ ["touchmove", 275, 0, 137.5],
+ ["pointermove", 283.4, 0, 141.667, [], 3],
+ ["touchmove", 283.4, 0, 141.667],
+ ["pointermove", 291.7, 0, 145.833, [], 3],
+ ["touchmove", 291.7, 0, 145.833],
+ ["pointermove", 300.1, 0, 150, [], 3],
+ ["touchmove", 300.1, 0, 150],
+ ["pointermove", 308.4, 0, 154.167, [], 3],
+ ["touchmove", 308.4, 0, 154.167],
+ ["pointermove", 316.7, 0, 158.333, [], 3],
+ ["touchmove", 316.7, 0, 158.333],
+ ["pointermove", 325.1, 0, 162.5, [], 3],
+ ["touchmove", 325.1, 0, 162.5],
+ ["pointermove", 333.4, 0, 166.667, [], 3],
+ ["touchmove", 333.4, 0, 166.667],
+ ["pointermove", 341.7, 0, 170.833, [], 3],
+ ["touchmove", 341.7, 0, 170.833],
+ ["pointermove", 350, 0, 175, [], 3],
+ ["touchmove", 350, 0, 175],
+ ["pointermove", 358.4, 0, 179.167, [], 3],
+ ["touchmove", 358.4, 0, 179.167],
+ ["pointermove", 366.7, 0, 183.333, [], 3],
+ ["touchmove", 366.7, 0, 183.333],
+ ["pointermove", 375.1, 0, 187.5, [], 3],
+ ["touchmove", 375.1, 0, 187.5],
+ ["pointermove", 383.4, 0, 191.667, [], 3],
+ ["touchmove", 383.4, 0, 191.667],
+ ["pointermove", 391.7, 0, 195.833, [], 3],
+ ["touchmove", 391.7, 0, 195.833],
+ ["pointermove", 400.1, 0, 200, [], 3],
+ ["touchmove", 400.1, 0, 200],
+ ["pointerup", 700, 0, 200],
+ ["touchend", 700, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-fling.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-fling.json
new file mode 100644
index 0000000000..6391f7b74b
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-fling.json
@@ -0,0 +1,45 @@
+{
+ "schema": 1,
+ "platform": "iOS 26.2 simulator, iPhone 17 Pro",
+ "browser": "Safari 26.2",
+ "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Mobile/15E148 Safari/604.1",
+ "dpr": 3,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "fling",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "idb ui swipe (companion-side steps of 60 pt), iOS 26.2 simulator, iPhone 17 Pro; the companion delivers a step about every 30 ms (measured), not at a set rate",
+ "hz": null,
+ "commanded": {
+ "fromPx": [0, 0],
+ "toPx": [0, 300],
+ "deltaPt": 60,
+ "durationMs": 42
+ },
+ "speed": 2400,
+ "restMs": 0,
+ "speedFrom": "Safari's delivery: the first to the last moving pointermove"
+ },
+ "release": {
+ "at": "lastMove",
+ "check": "shape",
+ "note": "idb lifts 58 ms after the last move, longer than the 40 ms stillness interval, which a finger lifting mid-motion does not do: the replay releases at the last move. The simulator delivers each step 29-44 ms apart (six samples here): against the speed Safari delivered, from its first to its last moving pointermove, the pan release reads 7.2% under and the scroll release 12.2% under. One misses 10%, so this fling is not velocity evidence, and only its direction and axis are checked"
+ },
+ "liftAfterLastMoveMs": 58,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 24, 0, 60, [[24, 0, 60]], 0],
+ ["touchmove", 24, 0, 60],
+ ["pointermove", 24, 0, 60, [[24, 0, 60]], 0],
+ ["pointermove", 53, 0, 120, [[53, 0, 120]], 0],
+ ["touchmove", 53, 0, 120],
+ ["pointermove", 82, 0, 180, [[82, 0, 180]], 0],
+ ["touchmove", 82, 0, 180],
+ ["pointermove", 124, 0, 300, [[124, 0, 300]], 0],
+ ["touchmove", 124, 0, 300],
+ ["pointerup", 182, 0, 300],
+ ["touchend", 182, 0, 300]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-slow.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-slow.json
new file mode 100644
index 0000000000..e1cf0affee
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-slow.json
@@ -0,0 +1,101 @@
+{
+ "schema": 1,
+ "platform": "iOS 26.2 simulator, iPhone 17 Pro",
+ "browser": "Safari 26.2",
+ "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Mobile/15E148 Safari/604.1",
+ "dpr": 3,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "slow",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "idb ui swipe (companion-side steps of 6 pt), iOS 26.2 simulator, iPhone 17 Pro; the companion delivers a step about every 30 ms (measured), not at a set rate",
+ "hz": null,
+ "commanded": {
+ "fromPx": [0, 0],
+ "toPx": [0, 200],
+ "deltaPt": 6,
+ "durationMs": 330
+ },
+ "speed": 183.538,
+ "restMs": 0,
+ "speedFrom": "Safari's delivery: the first to the last moving pointermove"
+ },
+ "release": {
+ "at": "lastMove",
+ "check": "shape",
+ "note": "idb lifts 85 ms after the last move, longer than the 40 ms stillness interval, which a finger lifting mid-motion does not do: the replay releases at the last move. The simulator delivers each step 29-44 ms apart: against the speed Safari delivered, from its first to its last moving pointermove, the pan release reads 22.9% under and the scroll release 2.3% over. One misses 10%, so this drag is not velocity evidence, and only its direction and axis are checked"
+ },
+ "liftAfterLastMoveMs": 85,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 48, 0, 6, [[48, 0, 6]], 0],
+ ["touchmove", 48, 0, 6],
+ ["pointermove", 48, 0, 6, [[48, 0, 6]], 0],
+ ["pointermove", 90, 0, 18.333, [[90, 0, 18.333]], 0],
+ ["touchmove", 90, 0, 18.333],
+ ["pointermove", 119, 0, 24.333, [[119, 0, 24.333]], 0],
+ ["touchmove", 119, 0, 24.333],
+ ["pointermove", 161, 0, 30.333, [[161, 0, 30.333]], 0],
+ ["touchmove", 161, 0, 30.333],
+ ["pointermove", 190, 0, 36.333, [[190, 0, 36.333]], 0],
+ ["touchmove", 190, 0, 36.333],
+ ["pointermove", 220, 0, 42.333, [[220, 0, 42.333]], 0],
+ ["touchmove", 220, 0, 42.333],
+ ["pointermove", 260, 0, 48.333, [[260, 0, 48.333]], 1],
+ ["touchmove", 260, 0, 48.333],
+ ["pointermove", 290, 0, 54.667, [[290, 0, 54.667]], 1],
+ ["touchmove", 290, 0, 54.667],
+ ["pointermove", 320, 0, 60.667, [[320, 0, 60.667]], 1],
+ ["touchmove", 320, 0, 60.667],
+ ["pointermove", 361, 0, 66.667, [[361, 0, 66.667]], 2],
+ ["touchmove", 361, 0, 66.667],
+ ["pointermove", 390, 0, 72.667, [[390, 0, 72.667]], 2],
+ ["touchmove", 390, 0, 72.667],
+ ["pointermove", 419, 0, 78.667, [[419, 0, 78.667]], 2],
+ ["touchmove", 419, 0, 78.667],
+ ["pointermove", 461, 0, 85, [[461, 0, 85]], 2],
+ ["touchmove", 461, 0, 85],
+ ["pointermove", 490, 0, 91, [[490, 0, 91]], 3],
+ ["touchmove", 490, 0, 91],
+ ["pointermove", 519, 0, 97, [[519, 0, 97]], 3],
+ ["touchmove", 519, 0, 97],
+ ["pointermove", 561, 0, 103, [[561, 0, 103]], 3],
+ ["touchmove", 561, 0, 103],
+ ["pointermove", 593, 0, 109, [[593, 0, 109]], 3],
+ ["touchmove", 593, 0, 109],
+ ["pointermove", 619, 0, 115, [[619, 0, 115]], 3],
+ ["touchmove", 619, 0, 115],
+ ["pointermove", 661, 0, 121.333, [[661, 0, 121.333]], 3],
+ ["touchmove", 661, 0, 121.333],
+ ["pointermove", 690, 0, 127.333, [[690, 0, 127.333]], 3],
+ ["touchmove", 690, 0, 127.333],
+ ["pointermove", 719, 0, 133.333, [[719, 0, 133.333]], 3],
+ ["touchmove", 719, 0, 133.333],
+ ["pointermove", 761, 0, 139.333, [[761, 0, 139.333]], 4],
+ ["touchmove", 761, 0, 139.333],
+ ["pointermove", 790, 0, 145.333, [[790, 0, 145.333]], 4],
+ ["touchmove", 790, 0, 145.333],
+ ["pointermove", 820, 0, 151.667, [[820, 0, 151.667]], 4],
+ ["touchmove", 820, 0, 151.667],
+ ["pointermove", 862, 0, 157.667, [[862, 0, 157.667]], 4],
+ ["touchmove", 862, 0, 157.667],
+ ["pointermove", 890, 0, 163.667, [[890, 0, 163.667]], 4],
+ ["touchmove", 890, 0, 163.667],
+ ["pointermove", 927, 0, 169.667, [[927, 0, 169.667]], 4],
+ ["touchmove", 927, 0, 169.667],
+ ["pointermove", 961, 0, 175.667, [[961, 0, 175.667]], 4],
+ ["touchmove", 961, 0, 175.667],
+ ["pointermove", 990, 0, 181.667, [[990, 0, 181.667]], 4],
+ ["touchmove", 990, 0, 181.667],
+ ["pointermove", 1019, 0, 188, [[1019, 0, 188]], 4],
+ ["touchmove", 1019, 0, 188],
+ ["pointermove", 1061, 0, 194, [[1061, 0, 194]], 4],
+ ["touchmove", 1061, 0, 194],
+ ["pointermove", 1105, 0, 200, [[1105, 0, 200]], 4],
+ ["touchmove", 1105, 0, 200],
+ ["pointerup", 1190, 0, 200],
+ ["touchend", 1190, 0, 200]
+ ]
+}
diff --git a/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-stop-release.json b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-stop-release.json
new file mode 100644
index 0000000000..ce991c0c03
--- /dev/null
+++ b/packages/core/src/gestures/__tests__/fixtures/pointer-streams/ios-safari-stop-release.json
@@ -0,0 +1,130 @@
+{
+ "schema": 1,
+ "platform": "iOS 26.2 simulator, iPhone 17 Pro",
+ "browser": "Safari 26.2",
+ "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Mobile/15E148 Safari/604.1",
+ "dpr": 3,
+ "pointerType": "touch",
+ "coarse": true,
+ "gesture": "stop-release",
+ "caveat": "Rig input is synthetic, not a finger: Android injects at 120 Hz through a uinput touchscreen and desktop through CDP, each through the browser's real input pipeline; iOS input is HID through idb on a leased simulator, which delivers a move every ~30 ms (not 120 Hz), so iOS speeds are the distance Safari delivered between the first and last moving pointermove, over that time. A physical finger's 120–240 Hz jittered sampling is not reproduced.",
+ "injected": {
+ "source": "one continuous touch through idb's HID API, iOS 26.2 simulator, iPhone 17 Pro; moves delivered about every 45 ms (measured), then held still before the lift",
+ "hz": null,
+ "commanded": {
+ "fromPx": [0, 0],
+ "toPx": [0, 200],
+ "stillMs": 300
+ },
+ "speed": 87.822,
+ "speedFrom": "Safari's delivery: the first to the last moving pointermove",
+ "restMs": 300
+ },
+ "release": {
+ "at": "pointerup"
+ },
+ "liftAfterLastMoveMs": 400,
+ "events": [
+ ["pointerdown", 0, 0, 0],
+ ["touchstart", 0, 0, 0],
+ ["pointermove", 49, 0, 4.333, [[49, 0, 4.333]], 0],
+ ["touchmove", 49, 0, 4.333],
+ ["pointermove", 49, 0, 4.333, [[49, 0, 4.333]], 0],
+ ["pointermove", 79, 0, 8.333, [[79, 0, 8.333]], 0],
+ ["touchmove", 79, 0, 8.333],
+ ["pointermove", 135, 0, 12.333, [[135, 0, 12.333]], 0],
+ ["touchmove", 135, 0, 12.333],
+ ["pointermove", 208, 0, 16.667, [[208, 0, 16.667]], 0],
+ ["touchmove", 208, 0, 16.667],
+ ["pointermove", 235, 0, 20.667, [[235, 0, 20.667]], 0],
+ ["touchmove", 235, 0, 20.667],
+ ["pointermove", 276, 0, 25, [[276, 0, 25]], 0],
+ ["touchmove", 276, 0, 25],
+ ["pointermove", 335, 0, 29.333, [[335, 0, 29.333]], 1],
+ ["touchmove", 335, 0, 29.333],
+ ["pointermove", 407, 0, 33.333, [[407, 0, 33.333]], 1],
+ ["touchmove", 407, 0, 33.333],
+ ["pointermove", 435, 0, 37.667, [[435, 0, 37.667]], 2],
+ ["touchmove", 435, 0, 37.667],
+ ["pointermove", 476, 0, 41.667, [[476, 0, 41.667]], 2],
+ ["touchmove", 476, 0, 41.667],
+ ["pointermove", 536, 0, 45.667, [[536, 0, 45.667]], 3],
+ ["touchmove", 536, 0, 45.667],
+ ["pointermove", 578, 0, 50, [[578, 0, 50]], 3],
+ ["touchmove", 578, 0, 50],
+ ["pointermove", 638, 0, 54.333, [[638, 0, 54.333]], 3],
+ ["touchmove", 638, 0, 54.333],
+ ["pointermove", 681, 0, 58.333, [[681, 0, 58.333]], 4],
+ ["touchmove", 681, 0, 58.333],
+ ["pointermove", 735, 0, 62.667, [[735, 0, 62.667]], 4],
+ ["touchmove", 735, 0, 62.667],
+ ["pointermove", 779, 0, 66.667, [[779, 0, 66.667]], 4],
+ ["touchmove", 779, 0, 66.667],
+ ["pointermove", 837, 0, 70.667, [[837, 0, 70.667]], 4],
+ ["touchmove", 837, 0, 70.667],
+ ["pointermove", 880, 0, 75, [[880, 0, 75]], 4],
+ ["touchmove", 880, 0, 75],
+ ["pointermove", 935, 0, 79.333, [[935, 0, 79.333]], 4],
+ ["touchmove", 935, 0, 79.333],
+ ["pointermove", 978, 0, 83.333, [[978, 0, 83.333]], 4],
+ ["touchmove", 978, 0, 83.333],
+ ["pointermove", 1036, 0, 87.667, [[1036, 0, 87.667]], 4],
+ ["touchmove", 1036, 0, 87.667],
+ ["pointermove", 1077, 0, 91.667, [[1077, 0, 91.667]], 4],
+ ["touchmove", 1077, 0, 91.667],
+ ["pointermove", 1106, 0, 95.667, [[1106, 0, 95.667]], 4],
+ ["touchmove", 1106, 0, 95.667],
+ ["pointermove", 1137, 0, 100, [[1137, 0, 100]], 4],
+ ["touchmove", 1137, 0, 100],
+ ["pointermove", 1177, 0, 104.333, [[1177, 0, 104.333]], 4],
+ ["touchmove", 1177, 0, 104.333],
+ ["pointermove", 1236, 0, 108.333, [[1236, 0, 108.333]], 4],
+ ["touchmove", 1236, 0, 108.333],
+ ["pointermove", 1276, 0, 112.667, [[1276, 0, 112.667]], 4],
+ ["touchmove", 1276, 0, 112.667],
+ ["pointermove", 1335, 0, 116.667, [[1335, 0, 116.667]], 4],
+ ["touchmove", 1335, 0, 116.667],
+ ["pointermove", 1406, 0, 120.667, [[1406, 0, 120.667]], 4],
+ ["touchmove", 1406, 0, 120.667],
+ ["pointermove", 1479, 0, 125, [[1479, 0, 125]], 4],
+ ["touchmove", 1479, 0, 125],
+ ["pointermove", 1535, 0, 129.333, [[1535, 0, 129.333]], 4],
+ ["touchmove", 1535, 0, 129.333],
+ ["pointermove", 1577, 0, 133.333, [[1577, 0, 133.333]], 4],
+ ["touchmove", 1577, 0, 133.333],
+ ["pointermove", 1635, 0, 137.667, [[1635, 0, 137.667]], 4],
+ ["touchmove", 1635, 0, 137.667],
+ ["pointermove", 1677, 0, 141.667, [[1677, 0, 141.667]], 4],
+ ["touchmove", 1677, 0, 141.667],
+ ["pointermove", 1707, 0, 145.667, [[1707, 0, 145.667]], 4],
+ ["touchmove", 1707, 0, 145.667],
+ ["pointermove", 1735, 0, 150, [[1735, 0, 150]], 4],
+ ["touchmove", 1735, 0, 150],
+ ["pointermove", 1778, 0, 154.333, [[1778, 0, 154.333]], 4],
+ ["touchmove", 1778, 0, 154.333],
+ ["pointermove", 1836, 0, 158.333, [[1836, 0, 158.333]], 4],
+ ["touchmove", 1836, 0, 158.333],
+ ["pointermove", 1878, 0, 162.667, [[1878, 0, 162.667]], 4],
+ ["touchmove", 1878, 0, 162.667],
+ ["pointermove", 1935, 0, 166.667, [[1935, 0, 166.667]], 4],
+ ["touchmove", 1935, 0, 166.667],
+ ["pointermove", 1977, 0, 170.667, [[1977, 0, 170.667]], 4],
+ ["touchmove", 1977, 0, 170.667],
+ ["pointermove", 2006, 0, 175, [[2006, 0, 175]], 4],
+ ["touchmove", 2006, 0, 175],
+ ["pointermove", 2035, 0, 179.333, [[2035, 0, 179.333]], 4],
+ ["touchmove", 2035, 0, 179.333],
+ ["pointermove", 2079, 0, 183.333, [[2079, 0, 183.333]], 4],
+ ["touchmove", 2079, 0, 183.333],
+ ["pointermove", 2135, 0, 187.667, [[2135, 0, 187.667]], 4],
+ ["touchmove", 2135, 0, 187.667],
+ ["pointermove", 2177, 0, 191.667, [[2177, 0, 191.667]], 4],
+ ["touchmove", 2177, 0, 191.667],
+ ["pointermove", 2235, 0, 195.667, [[2235, 0, 195.667]], 4],
+ ["touchmove", 2235, 0, 195.667],
+ ["pointermove", 2277, 0, 200, [[2277, 0, 200]], 4],
+ ["touchmove", 2277, 0, 200],
+ ["pointerup", 2677, 0, 200],
+ ["touchend", 2677, 0, 200]
+ ]
+}