Closed aless133 closed 9 years ago
Can you elaborate what problem this code solves?
In "center mode" visibility doesn't matter on activity on next/prev controls. Only current target matter. Btw, I've end up with this, because of .underflow :
if (this.options('center'))
return this.index(this._target) <end;
else
return
(end >= 0 && !this.underflow &&
((wrap && wrap !== 'first') ||
(this.index(this._last) < end) ||
(this.tail && !this.inTail))) ? true : false;
Got it. Fixed in 31e28db. Thanks!
I this there should be something like that in hasNext() (this.options('center') && this.index(this._target) < end) ||
and in hasPrev (this.options('center') && this.index(this._target) >0) ||