Preserve Scrolling not working on variant components

Hello,

Scenario - I’m attempting to create a mobile prototype with a scrollable secondary navigation, the secondary navigation should preserve its horizontal scroll position after an on click interaction

Problem - My prototype will not preserve horizontal scroll position when changing variants with the on click interaction.

Image of menu -

Image of component

Here is a link my prototype - Figma

Thank you for your help