Skip to content

Commit

Permalink
Added another clause to stop the scroller if the unordered list is sh…
Browse files Browse the repository at this point in the history
…orter than the hover item box.
  • Loading branch information
baphled committed Jun 11, 2010
1 parent 5e4af39 commit 1a20e08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/javascripts/autoScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ $.fn.autoScroller = function(options) {
.animate({opacity: 1}, 3);
}
previousOffset = $innerUnorderedList.scrollTop();

if ((previousOffset && $innerUnorderedList.scrollTop()) == 0) {
stop = false;
}
}
}, opts.speed);
}
Expand Down

0 comments on commit 1a20e08

Please sign in to comment.