Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery vertical scroll

var prevLeft = 0;
$(document).scroll( function(evt) {
    var currentLeft = $(this).scrollLeft();
    if(prevLeft != currentLeft) {
        prevLeft = currentLeft;
        console.log("I scrolled horizontally.");
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #vertical #scroll
ADD COMMENT
Topic
Name
7+9 =