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

What is Framer? Join the Community
Return to index
Richard Whitner
Posted Feb 06 - Read on Facebook

I’m having an issue with the the ScrollComponent, where when I scroll up, and let it slow to a stop on its own, the scroll.direction property triggers a couple scroll.direction == “down” after coming to a stop. So scrolling up with this:

scroller.on Events.Move, ->
print scroller.direction

outputs this when the upward scrolling comes to a stop:

» "up"
» "up"
» "up"
» "down"
» "down"

The opposite doesn't happen when scrolling down. Is it supposed to do this? Is there a way to stop this from happening?


Jordan Robert Dobson

It's probably because it has a slight bounce to it... You could either remove that or look at the isDragging / isMoving / isAnimating propertys on Draggable... you'd want to check scroller.content.draggable.isDragging... etc

Read the entire post on Facebook