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

What is Framer? Join the Community
Return to index
Veronica Jimenez-Miller
Posted Dec 22 - Read on Facebook

Hey Framers! How can I keep the user's scroll position on a scroll component? Thanks

7 Comments

Jonas Treub

The scrollX and scrollY properties of a scrollComponent are both getters and setters.

Veronica Jimenez-Miller

This is what I have:

Veronica Jimenez-Miller

titlesscroll = new ScrollComponent
parent: filterbox
width: 755
height: 1000
y: 96
titlesscroll.scrollHorizontal = false
titlesscroll.scrollVertical = true
titlesscroll.content.scrollY = 5000

Veronica Jimenez-Miller

titlescontainer = new Layer
parent: titlesscroll.content
width: 755
backgroundColor: null
height: 1000

Veronica Jimenez-Miller

I've added a bigger value to scrollY but it keeps bouncing back

Junha Kang

can u explain again what u r trying to achieve here ?

and maybe it's not working because the content scrollY u set is bigger than the scrollcomponents height

Veronica Jimenez-Miller

Yeah, just adjusted the size and worked! Thanks 🙏🏻

Read the entire post on Facebook