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

What is Framer? Join the Community
Return to index
Vincenzo Petito
Posted Dec 14 - Read on Facebook

Why the onMove function is not working on the scrollComponent inside the FlowComponent?

Here's my code:
flowContent.childrenWithName("scrollComponent").onMove ->
print Utils.round(@.y)

1 Comments

Jonas Treub

You can get the scroll component using the private _wrappedLayer function.

flow = new FlowComponent
layer = new Layer(height: Screen.height * 2)
flow.showNext(layer)
scroll = flow._wrappedLayer(layer)
scroll.onMove -> print scroll.scrollY

Read the entire post on Facebook