modules.prevPage=function(y)return function(J)if y.isAnimating then return end local K=y.state.selectedIndex-J if K<1 then K=#y.props.images+K end y.setCurrentIndex(K,J)end end
--[[
	Navigates to the previous page.
]]
modules.prevPage = function(self)
	return function(pageSize)
		if self.isAnimating then
			return
		end

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

		self.setCurrentIndex(nextIndex, pageSize)
	end
end
