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

What is Framer? Join the Community
Return to index
Clint Miller
Posted Oct 31 - Read on Facebook

I'm having some issues with a prototype I'm working on.

1. I can't get both page components to work at the same time.

2. I'm getting this error "Error: Can't scroll to this layer because it's not in the ScrollComponent. Add it to the content like layer.parent = scroll.content." I understand what it's trying to tell me, but it looks like in my layer panel that I have added the layers I need to the page component.

3. The layers I've added to my bottom page component aren't sitting flush with it. I made the second page components background red to illustrate this. You can interact with the component, which does cause them to come up and be in the correct place, but they pages don't start in the correct place. It seems to be an inheritance issue to me, but I'm not having any problems with the other page component.

I'd appreciate any help someone is willing to give me. Thanks!


Dan Bartley

I'm not 100% sure what you're trying to do but this could possibly help:

1: Setting clip to false on pageGames is making the content layer take over the screen. So set that to true to keep scroll events within the right area.

2: The error is because you're referencing page.snapToPage instead of pageGames.snapToPage. (Or you're referencing the wrong page)

3: I'm not sure how it's meant to look so I'm not quite sure what you're after there but it seems like you just need to set the y values for the pageGames layers.

Read the entire post on Facebook