storycap icon indicating copy to clipboard operation
storycap copied to clipboard

Does storycap cause browser resizing?

Open Jamie5 opened this issue 2 years ago • 3 comments

This is with storycap 3.1.8, puppeteer 14.2.1 (also seems to happen with puppeteer 9.1.1).

It seems like when capturing screenshots, storycap starts at 800x600 (I guess that is the default viewport), goes to the user-specified viewport, but during each screenshot, will resize to 1x1 before going back to the user-specified viewport. This is known due to logging from a window.resize event, the values of document.body.clientWidth and document.body.clientHeight. This causes problems for us due to using said values to do various throttled calculations. (we have potential workarounds, but it would be strange if this resizing is indeed going on)

Jamie5 avatar Jun 02 '22 22:06 Jamie5