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

What is Framer? Join the Community
Return to index
Raphaël de Courville
Posted Jun 04 - Read on Facebook

Hello framers. I'm struggling with a scope issue using snapToPage() in an event callback function (see the image). Could somebody point me in the right direction? Thanks!

19 Comments

George Kedenburg III

if you do a print(groupforming) in that event, what happens?

Raphaël de Courville

I get this: <Layer id:4 name:artboardC (2160,0) 1080x1920>

George Kedenburg III

how about print(pages)?

Raphaël de Courville

<PageComponent id:12 name:artboardA (0,0) 1080x1920>

George Kedenburg III

so both of those layers have the correct thing in them, which means its probably not a scope issue... can you share the rest of your project?

Raphaël de Courville
George Kedenburg III

can you share the full project, not just the framer code?

Raphaël de Courville

Oops, I'm really a newbie, sorry :) http://share.framerjs.com/dq9jr7gqpmlm/

George Kedenburg III

very weird, i think this might be a bug... if i make a new layer and add that action to it, it works fine. Koen is there some weirdness with PageComponent children trying to effect their parent?

George Kedenburg III

here's the updated project: http://share.framerjs.com/p05jbyp8gubz/ (round button is btn_groups, red block is newBtn)

Raphaël de Courville

Thank you! The more I use Framer, the more I love it :)

Jordan Robert Dobson

Nice one George Kedenburg III

Raphaël de Courville

By the way...

Raphaël de Courville

So I just moved it on top of the actual button and gave it a 0.0 opacity. It's not as clean but at least it works :)

Raphaël de Courville

We found a better solution!

Jordan Robert Dobson

Chris - lol. Same thing again.

Chris Camargo

ROFL

Jordan Robert Dobson

Seems like this might be a good item for docs / snippet / teach section Benjamin Den Boer Koen Bok?

Read the entire post on Facebook