JavaScript
Article
By Sam Deering

jQuery Snippet Capture Horizontal Scroll

By Sam Deering

Just a jQuery Code Snippet to Capture Horizontal Scrolling.

//capture horizontal scroll
$(window).bind('scroll', function()
{
     //check if it's hit the leftmost scroll point
    if ($(document).scrollLeft() == 0)
    {
          //scroll horizontal
    }
});
  • alk

    Sighh… not even a demo on the page.

    • Sorry about this mate, I have a really good horizontal scroll demo coming soon.

Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.