This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Spencer Brooks
Posted Feb 20 - Read on Facebook

Hey folks,

I've been having a lot of trouble with Scroll Components reseting their scroll position when you move layers in and out. In the example below note the scroll position resets to 0 every time one of the layers gets to another parent.

What's the preferred and simple way to lock the Scroll Component in place while layers are move in and out? Do I have to store scroll positions all the time?


Jordan Robert Dobson

savedPoint = scroller.scrollPoint

... Do Add or Remove...

scroller.scrollPoint = savedPoint

Jordan Robert Dobson

That's the basic pattern I've been following. It's working pretty well.

Spencer Brooks

Thanks Jordan. I've been doing that too, but wanted to confirm with the community if that was a best practice.

Read the entire post on Facebook