Files
pipelines/app/tool/capture/examples/chat-link-click.json
T
alan 7f313cf5ef Chat links: a mouse click opens the link even when the pointer drifts
The selection area claimed a primary mouse press on a link as a selection
drag once the pointer moved 2 px, so in the browser ordinary clicks with a
little hand or trackpad movement opened nothing. A link's recognizer now
accepts a primary mouse press on pointer down, as an anchor does; the click
still cancels past the tap slop, drags from plain text still select across
links, and touch long press keeps Copy link.
2026-11-03 18:35:43 +00:00

22 lines
766 B
JSON

{
"size": "880x1000",
"params": "chats=1&msgs=4&links=1",
"steps": [
{ "open": "/chat" },
{ "click": "OpenCode harness\nFixture chat 1\n/workspace/demo", "wait": 2000 },
{ "eval": "window.__opened = []; window.open = (u) => { window.__opened.push(String(u)); return null; }" },
{ "shot": "chat" },
{ "drag": "480,719>5,0", "steps": 3, "wait": 600 },
{
"expect": "window.__opened.length === 1 && window.__opened[0] === 'https://example.com/releases/v2'",
"name": "a click that drifts 5 px still opens the link"
},
{ "drag": "380,719>240,0", "steps": 12, "wait": 600 },
{ "shot": "drag-select-across-links" },
{
"expect": "window.__opened.length === 1",
"name": "a selection drag from plain text across links opens nothing"
}
]
}