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

What is Framer? Join the Community
Return to index
Alberto Moro
Posted Jul 02 - Read on Facebook

Hi people! When using a PageComponent, is it possible to access it from anywhere in the code to change its scrolling attributes?
For instance something like: "page.scrollHorizontal: false"?
I tried but it doesn't work. Any suggestion? Thanks in advance.

6 Comments

Stephen Crowley

change : to =

Stephen Crowley

Also, when you define your component you can do this:
pageScroll = new ScrollComponent
width: Screen.width
height: Screen.height
scrollHorizontal: false

Alberto Moro

I've tried but I can still jump between pages

Alberto Moro

I would like the HorizontalScroll to stop working only when a condition is met.

Stephen Crowley

Sorry... haven't had my coffee this AM ha! Ok, ScrollCompontent should say PageComponent. Can you you share your project?

Alberto Moro

oh yeah I figured, no worries :)

Read the entire post on Facebook