It's probably staring me in the face, but how do I get the scroll position on a scroll component?
Basically I want to set up a function that will run iff the content has been scrolled past something like 300px
I think you want pageContent.scrollY()
Mike `TypeError: 0 is not a function (evaluating 'pageContent.scrollY()')`
I tried just pageContent.scrollY but just got zero
Try to print the page.width and page.height to check the width and height of your scroll component
Drop the (): print pageContent.scrollY
Ken Koen ah, it was working the whole time. I'm doing this in a for loop, and for some reason the .on Events.Scroll listener is *only* applying to the last page...not sure how to fix that, but my original post was a non-issue.
Guess I need to bring the function out of the for loop?
Replace line 22 with: print layer.scrollY
Perhaps try pageContent.content.y or pageContent.content.scrollY
Man, I'm getting feelings everytime I see a screenshot of code with nice styling on dark background. #art
Koen Bok layer.scrollY is giving me undefined :(