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 5 Aug 2009 14:34:20 -0000 @@ -653,7 +653,7 @@ if (p == 0) self.list.css(self.lt, 0); - if (self.options.wrap == 'both' || self.options.wrap == 'last' || self.options.size == null || self.last < self.options.size) + if (self.options.wrap == 'both' || self.options.wrap == 'last' || self.options.size == null || (self.last < self.options.size && self.options.scroll >= 0) || (self.first >= 1 && self.options.scroll < 0)) self.startAuto(); self.buttons(); @@ -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; }