Scroll-to interaction not working

Here’s a link to the prototype that presents the bug in question

I cannot make either the main component nor the child of the component ‘scroll to’ top nor bottom.

My goal is to have a parent component with interchangeable content in the middle, with two buttons for scrolling to top and bottom, so that when I make child components and change the content in the middle the functionality of scrolling to top and bottom still works.

When I’m using just frames for everything, then everything works fine.
But, as soon as I make a component the ‘scroll to’ buttons stop working.

I also tried making the content height ‘hug’, but the behaviour doesn’t change.

Why doesn’t ‘Scroll to’ interaction on buttons ‘Top’ and ‘Bottom’ work?