Feature Request: Scroll patch in relations to website (height)

I saw that for the Ableton Loop website (https://twitter.com/cables_gl/status/1174627430478372864 / https://loop.ableton.com/2020/) the canvas is fixed as a background, but scrolls with the website. It’s not perfect, e.g. on the top I think the header is messing with the calculations, there is a visible discrepancy in scrolling speed. Not sure if that’s a bug or intended, but anyway: I think that this feature, in general, would be super handy and would love to have that implemented somehow. It probably doesn’t need to be a dedicated op, maybe an example patch would suffice. But something that can be easily reused in other projects would be great! Thanks :slight_smile:

not sure if i understand this correctly but couldt you simply use

document.documentElement.scrollTop || document.body.scrollTop

and then maybe set this from the outside (if necessary at all: https://docs.cables.gl/dev_embed_vars/dev_embed_vars.html) and then do stuff
in the patch itself in relation to that?

there is also this op: https://cables.gl/op/Ops.Html.ScrollPosition