Voltaire // Allow page-cycling.

This commit is contained in:
ShikiSuen 2022-02-15 15:05:52 +08:00
parent d14b61781e
commit 1b4d63aaab
2 changed files with 4 additions and 4 deletions

View File

@ -260,7 +260,7 @@ public class HorizontalCandidateController: CandidateController {
} }
if currentPage + 1 >= pageCount { if currentPage + 1 >= pageCount {
return false currentPage = 1
} }
currentPage += 1 currentPage += 1
@ -275,7 +275,7 @@ public class HorizontalCandidateController: CandidateController {
} }
if currentPage == 0 { if currentPage == 0 {
return false currentPage = pageCount
} }
currentPage -= 1 currentPage -= 1

View File

@ -266,7 +266,7 @@ public class VerticalCandidateController: CandidateController {
} }
if currentPage + 1 >= pageCount { if currentPage + 1 >= pageCount {
return false currentPage = 1
} }
currentPage += 1 currentPage += 1
@ -281,7 +281,7 @@ public class VerticalCandidateController: CandidateController {
} }
if currentPage == 0 { if currentPage == 0 {
return false currentPage = pageCount
} }
currentPage -= 1 currentPage -= 1