Recording 2281 idles for 4.5 s before it starts moving
Recording 2281 in cursory/trajectories.json.gz (start [1080, 422], end [788, 812]) sits still for 4,502 ms of its 5,007 ms before the cursor starts moving. Any movement matched to it freezes the cursor in place for 4.5 s, then moves in the last half second.
It's a clear outlier. Time until the cursor first moves more than 3 px from its start, across all 2,357 recordings:
| idle start | |
|---|---|
| p50 | 26 ms |
| p90 | 118 ms |
| p99 | 291 ms |
| next-worst recording | 838 ms |
| #2281 | 4,502 ms |
How we found it: we use cursory's trajectories to drive a cursor in browser tests. A test that fails any click over 5 s failed on one seed. Replaying that seed showed the cursor holding one pixel for 4.5 s before moving down-left about 490 px, the same direction and distance as #2281. With #2281 removed and the same seed, that click took 736 ms instead of 5,156 ms.
Script to reproduce the numbers above:
import gzip, json, math
from importlib.resources import files
d = json.load(gzip.open(files("cursory") / "trajectories.json.gz", "rt"))
def idle_start(t):
p, ts = t["points"], t["timing"]
k = next((i for i, q in enumerate(p) if math.dist(q, p[0]) > 3), len(p) - 1)
return ts[k] - ts[0]
leads = sorted(((idle_start(t), i) for i, t in enumerate(d)), reverse=True)
print(leads[:3]) # [(4502, 2281), (838, 1847), (751, 592)]
Fix in the linked PR: drop that one entry. Nothing else changes, and the tests still pass.