Index: jcarousel/lib/jquery.jcarousel.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/jcarousel/jcarousel/lib/Attic/jquery.jcarousel.js,v retrieving revision 1.1.2.1 diff -u -p -r1.1.2.1 jquery.jcarousel.js --- jcarousel/lib/jquery.jcarousel.js 2 Dec 2008 20:22:46 -0000 1.1.2.1 +++ jcarousel/lib/jquery.jcarousel.js 3 Aug 2009 21:51:20 -0000 @@ -718,14 +718,14 @@ */ buttons: function(n, p) { if (n == undefined || n == null) { - var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null || this.last < this.options.size); - if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && this.last >= this.options.size) + var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null || (this.last < this.options.size && this.options.scroll >= 0) || (this.first >= 1 && this.options.scroll < 0)); + if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && ((this.last >= this.options.size && this.options.scroll >= 0) || (this.first == 1 && this.options.scroll < 0))) n = this.tail != null && !this.inTail; } if (p == undefined || p == null) { - var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || this.first > 1); - if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && this.first == 1) + var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || (this.first > 1 && this.options.scroll >= 0) || (this.last < this.options.size && this.options.scroll < 0)); + if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && ((this.first == 1 && this.options.scroll >= 0) || (this.last >= this.options.size && this.options.scroll < 0))) p = this.tail != null && this.inTail; }