Check for the last state. Something like this:
Keep a variable, say, last_scroll_position
, and when you have a scroll, if last_scroll_position - current_position > 0
, the user scrolled up, and down if it’s less than 0.
More Related Contents:
- How to programmatically disable page scrolling with jQuery
- Scroll to a div using jQuery
- How can I scroll to a specific location on the page using jquery?
- jQuery Scroll to bottom of page/iframe
- How to detect scroll direction
- Can I change the scroll speed using css or jQuery?
- jQuery scroll to ID from different page
- Activate CSS3 animation when the content scrolls into view
- Detect middle button click (scroll button) with jQuery
- More efficient way to handle $(window).scroll functions in jquery?
- jquery change background color user scroll
- Animate scroll to ID on page load
- Show Div when scroll position
- How do I scroll a row of a table into view (element.scrollintoView) using jQuery?
- jQuery disable scroll when mouse over an absolute div
- How do I get the height of a div’s full content with jQuery?
- jquery – keep window from changing scroll position while prepending items to a list?
- Disable scrolling when changing focus form elements ipad web app
- jQuery trigger when 2/3s of div are in viewport
- How to make div follow scrolling smoothly with jQuery?
- How to detect horizontal scrolling in jQuery?
- jQuery animate scroll
- scroll up and down a div on button click using jquery
- Use jQuery to check mousewheel event without scrollbar
- jQuery: detecting reaching bottom of scroll doesn’t work, only detects the top
- Detect user scroll down or scroll up in jQuery [duplicate]
- Jquery .on(‘scroll’) not firing the event while scrolling
- Hide options in a select list using jQuery
- jQuery select box validation
- How to prevent jump on an anchor click?