modules.nextPage=function(x)return function(g)if x.isAnimating then return end local u=x.state.selectedIndex+g if u>#x.props.images then u-=#x.props.images end x.setCurrentIndex(u,-g)end end

modules.nextPage = function(self)
	return function(pageSize)
		if self.isAnimating then
			return
		end

		local nextIndex = self.state.selectedIndex + pageSize
		if nextIndex > #self.props.images then
			nextIndex -= #self.props.images
		end

		self.setCurrentIndex(nextIndex, -pageSize)
	end
end
