How do I detect horizontal scrolling with jQuery?
This will get all scrolls:
$(window).scroll(function () { alert(\'in\'); });
window.onresize = function() { if ( $("div").outerWidth() < $("div").get(0).scrollWidth ) { console.log("foo bar scrollbar"); } else { console.log(" no scrolling "); } };