deviceframe icon indicating copy to clipboard operation
deviceframe copied to clipboard

Add possibility to scroll

Open ronaldohoch opened this issue 6 years ago • 3 comments

First of all: AWESOME TOOL!

Can you add the feature to scroll x pixels or scroll to #id?

ronaldohoch avatar Mar 22 '18 11:03 ronaldohoch

Thanks!

Internally, deviceframe uses screenshot-stream, which has a selector option. We can add an option for that and pass it a long.

Do you have an example page you'd want to test?

c0bra avatar Mar 22 '18 14:03 c0bra

I think You can test in my last website Imperium LARP

image

The "first page" always have the device height and content is after.

ronaldohoch avatar Mar 22 '18 14:03 ronaldohoch

So the selector option actually just clips the selector you pass as the screenshot.

There's no way to scroll currently AFAICT. I'll see about opening a pull request.

c0bra avatar Mar 28 '18 19:03 c0bra