You could just `Number.MAX_VALUE` here as the scrollToPosition method will constrain the value to the maximum allowable in either case.