diff --git a/app/tool/capture/page.mjs b/app/tool/capture/page.mjs index 8cbe9d79..6dcc692e 100644 --- a/app/tool/capture/page.mjs +++ b/app/tool/capture/page.mjs @@ -203,6 +203,10 @@ export function flutterPage(browser, log, { touch = false } = {}) { evaluate, /** Screencasts [ms] after clicking [target]; frames are `{ data, ms }` relative to the click. */ async film(target, ms) { + // Contact sheets use a scratch tab. Restore this target's compositor + // viewport before another screencast, otherwise Chrome can crop frames. + await send('Page.bringToFront'); + await resize(viewport.width, viewport.height); const point = await locate(target); const frames = []; const ack = (p) => {