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.

    • jQuery4u

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

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

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