I want to determine the scroll of the users. I’m using jQuery.. And jquery have .scroll event.. But the .scroll event can’t determine whether the user is scrolling the page downwards or upwards.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can start with a variable like this:
And then have something that monitors whether the scrollTop is going up or down: