JavaScript
Article
By Sam Deering

jQuery Snippet Capture Horizontal Scroll

By Sam Deering

Just a jQuery Code Snippet to Capture Horizontal Scrolling.

--ADVERTISEMENT--

//capture horizontal scroll
$(window).bind('scroll', function()
{
     //check if it's hit the leftmost scroll point
    if ($(document).scrollLeft() == 0)
    {
          //scroll horizontal
    }
});
Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account