Skip to main content
Bruce_K
Apr 11, 2022 9:17 PM UTC
Question

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 -

ImgBB

Here is a link my prototype - Figma

Thank you for your help

This topic has been closed for replies.

5 replies

Ben_Craig
Nov 18, 2022 5:36 AM UTC

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.

Jun 1, 2023 2:52 AM UTC

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
Jun 30, 2023 9:08 PM UTC

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
Feb 27, 2024 1:35 AM UTC

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
Mar 11, 2025 6:04 PM UTC

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