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

What is Framer? Join the Community
Return to index
Laura Galbraith
Posted Jun 05 - Read on Facebook

Hey again! I promise my last question of the day :) what would be the best way to track the users' scrolling direction? I wanted to use it to control a PageComponent... I'm thinking it might look something like this... (or am i oversimplifying?)

on Events.MouseScrollUp, ->
page.snapToPreviousPage("bottom", true)
on Events.MouseScrollDown, ->
page.snapToNextPage("bottom", true)


Andreas Wahlström

You can use a ScrollComponent and the scroll event to read out the direction of a scroll. I put together a quick example here:

Laura Galbraith

Thanks for the example! This helped a ton!

Read the entire post on Facebook