| 1 | |
| 2 | this.scrollerWidth = this.scroller.offsetWidth; |
| 3 | this.scrollerHeight = this.scroller.offsetHeight; |
| 4 | |
| 5 | this.maxScrollX = this.wrapperWidth - this.scrollerWidth; |
| 6 | |
| 7 | var limit; |
| 8 | if ( this.options.infiniteElements ) { |
| 9 | this.options.infiniteLimit = this.options.infiniteLimit || Math.floor(2147483645 / this.infiniteElementHeight); |
| 10 | limit = -this.options.infiniteLimit * this.infiniteElementHeight + this.wrapperHeight; |
| 11 | } |
| 12 | this.maxScrollY = limit !== undefined ? limit : this.wrapperHeight - this.scrollerHeight; |