This seems to work.
var lastScrollLeft = 0;
$(window).scroll(function() {
var documentScrollLeft = $(document).scrollLeft();
if (lastScrollLeft != documentScrollLeft) {
console.log('scroll x');
lastScrollLeft = documentScrollLeft;
}
});
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
- Differentiate between scroll up/down in jquery? [duplicate]
- 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?
- 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
- Animate an element’s width from 0 to 100%, with it and it’s wrapper being only as wide as they need to be, without a pre-set width, in CSS3 or jQuery
- Convert delimited string into hierarchical JSON with JQuery
- Way to trigger multiple keypress and hold events in jQuery