Hey Everybody!Currently playing with Framers new PageComponent.
Is there a way to setup an Events.Click on a separate layer to snap to a specific page within the PageComponent?
I tried:button.on Events.Click,-> page.snapToPage(page2)
It doesn't snap the page, but when I print change:currentPage, it prints two lines in the console. (perhaps the page snaps but then snaps back)
Any help would be great! Thanks!
“perhaps the page snaps but then snaps back” Yep, you're exactly right. Add Utils.delay 0 before you call snapToPage()
See Tisho's explanation here: https://www.facebook.com/groups/framerjs/permalink/687287008065040/?comment_id=689141727879568&hc_location=ufi
Raphaël de Courville just saw this! thanks!