How can i detect user scroll down or up by using scrollhandler?

how can I detect users scroll down or up by using a scroll handler?

You can create a new variable, and name it lastY to save the last Y position. now using the Scroll event:
You can use an if condition like this : if ( lastY < yPosition ) so the user is scrolling up, else, the user is scrolling down.And after this statement you should set the lastY variable to the y positioning.

P.S: i’m not sure which scroll handler extension you use, but i advice you to use this extension , because the other extension by @colintree causes the app to crash, when using multiple fingers.:


can i have ur personal contact whatsapp or mail?

Sorry, sharing personal information isn’t allowed here.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.