Skip to content

Instantly share code, notes, and snippets.

@RyanS
Created August 16, 2010 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanS/527607 to your computer and use it in GitHub Desktop.
Save RyanS/527607 to your computer and use it in GitHub Desktop.
var scrollStoppedID;
Event.observe(window, 'scroll', function(e) {
window.clearTimeout(scrollStoppedID);
scrollStoppedID = (function() {document.fire('scroll:stopped')}).delay(.5);
});
document.observe('scroll:stopped', moveSubColumn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment