Restore the capture viewport between animation recordings
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user