Scroll to defined in component does not work?

When defining Scroll to interactions in a component and then using it’s instance in a prototype they don’t work. They seem to be linked to the position of the children inside the component? This feels like a bug?

I have a prototype where I need to use an instance of a component with multiple variants so it can adapt to state in variables. But this now means I can’t prototype scroll to interactions.

Example file: