Scroll position not preserved when changing to a variant after delay

I wanted to show a sticky toast at the top of a long page, that disappears after 5000ms by going to a variant of the page without toast.
I checked preserve scroll position, since the user could have already scrolled down.
When going to the toastless variant it still jumped to the top of the page.

3 Likes

Hello, were you able to you solve this issue?
Iā€™m having a similar issue I want a menu with a fixed position and the menu has effects on hover, however when you scroll down and hover on the menu it jumps up to the original position then down, even if it is set as fix position when scrolling and all variants are.

Edit : was able to solve it with Interactions with smart animate not working as expected when position is fixed and document is scrolled down