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

What is Framer? Join the Community
Return to index
Shane Brown
Posted Mar 08 - Read on Facebook

I'm encountering an issue where ScrollComponents aren't behaving properly in a prototype. I have an image layer from sketch that I want to be able to scroll up and down (it is longer than the screen height), but on the DragEnd it keeps snapping back to its default position, rather than continuing to scroll with momentum.

In a brand new file it works as expected with no need to change settings, but copy-pasting the code across into the existing one it doesn't 😩

Any thoughts on what might be causing this?

2 Comments

Floris Verloop

Could you share your code / prototype so I can take a peek?

Shane Brown

Answer: My ScrollComponent layer height wasn't the correct height and instead matched the height of all the layers inside, so it had nothing to scroll. Fixed by manually setting the ScrollComponents height to the size I needed. Thanks Floris Verloop!

Read the entire post on Facebook