Having issues with multiple interactions from one trigger on variants

Hi, I’m trying to build a side navigation bar with anchor links right now for a website prototype and I’m struggling to get the interaction animations to work.

For reference, I’ve used component variants to animate which navigation button is selected, and then hard-wired the scroll-to animations in the actual frame. However, when I actually test the prototype, the animations bug a lot, some examples including:

  • Clicking the navigation button won’t trigger the scroll-to animations
  • In some cases I have to double click to trigger the interactions when it should just be one click

I’ve made a simplified version of it here:
https://www.figma.com/design/yzn57JN2qYWrHkrEernVHu/(TEST)-Anchor-link-sticky-bar-animation?node-id=0-1&t=V49NGzzPhp9kHf8z-1

Please help!!! It feels like I’ve tried anything, and I don’t know if there’s a solution that I just haven’t got to yet, or if it’s just another Figma bug, or if it’s just not possible.