Skip to main content
Question

Preserve Scrolling not working on variant components


Bruce_K

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 -

ImgBB

Here is a link my prototype - Figma

Thank you for your help

5 replies

Ben_Craig
  • 2 replies
  • November 18, 2022

I’m having the same problem: Preserve scroll position not working with On Click / Change to connections between variants. This really screws my plans for my prototype! ugh.


  • 1 reply
  • June 1, 2023

Not a solution as such - but i found my paged jumped to the top and back to the component when i made an on-click transition between component variants AND had the transition set to smart animate.

Changing the transition from smart-animate to instant solved the jump issue


Julie_Turgeon

Also having the same problem. Marc22’s solution to change the transition to instant solved it for me. However, I no longer get to see or use my intended transition.


YaelR
  • 1 reply
  • February 27, 2024

I was running into some of the same issues recently - another trick to keep in mind is make sure the frames of all parent components are the same dimensions. That will ensure that the components change to keep generating in the same area, and smart animate should work too!


Tobias3
  • New Member
  • 4 replies
  • March 11, 2025

Two years down the line, and I´m having the same issue :-(

Changing to “instant” does solve the problem, but I want to animate my transition! This clearly feels like a bug which should be fixed.

BEst
/Tobi


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings