This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added return false to mouse bound events to prevent the browser from …

…jumping the page.
  • Loading branch information...
1 parent 7bb2e0a commit 878f0e35380f974273c31d67443b3ed54574039e @iammerrick committed Jul 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jquery.jcarousel.js
View
@@ -175,8 +175,8 @@
this.buttonNext.css('display', 'block');
this.buttonPrev.css('display', 'block');
- this.funcNext = function() { self.next(); };
- this.funcPrev = function() { self.prev(); };
+ this.funcNext = function() { self.next(); return false; };
+ this.funcPrev = function() { self.prev(); return false; };
this.funcResize = function() {
if (self.resizeTimer) {
clearTimeout(self.resizeTimer);

0 comments on commit 878f0e3

Please sign in to comment.