if (horizontalScrollRange === Number.POSITIVE_INFINITY) {
            //trying to put positive infinity into an int results in 0
            //so we need a special case to provide a large int value.
            if (this._minHorizontalScrollPosition === Number.NEGATIVE_INFINITY) {
                this._minHorizontalPageIndex = Number.MIN_SAFE_INTEGER;