title: jquery horizontal scroll event - Edit
body: <p>Hi there I have a horizontally scrolling gallery that i want to add dynamic captions to, the captions are static on the page and I would like them to toggle on and off when the user scrolls past each image.</p>
  
  <p>heres a mock up of the page:</p>
  
  <p><a href="http://www.jonathantopf.com/imijstudio/" rel="nofollow">http://www.jonathantopf.com/imijstudio/</a></p>
  
  <p>For a proof of concept i have a little red square in the above gallery that i would like to use to trigger an event when it enters the screen. Any ideas?</p>
  
  <p>I had a go using waypoints but couldn't figure out how to set it to listen for horizontal scroll events. I'm very new to jquery as you might be able to tell so any help is greatly appreciated, </p>
  
  <p>Heres what I tried so far:</p>
  
  <pre><code>$(document).ready(function() {
  
  $("#blob").waypoint(function() {
      alert('waypoint reached.');
  });
  
  
  });
  </code></pre>
  
  <p>and here's the error:</p>
  
  <pre><code>Uncaught TypeError: Object function ( selector, context ) {
      // The jQuery object is actually just the init constructor 'enhanced'
      return new jQuery.fn.init( selector, context );
  } has no method 'isWindow'
  </code></pre>
  
  <p>UPDATE: upgraded to latest version of jquery, that seemed to fix the consloe error. It works now but only when the square enters the frame vertically, i can t find how to set the orientation to horizontal.</p>
  
  <p>Thanks</p>
  
  <p>jon</p>