Voltaire // Allow page-cycling.
This commit is contained in:
parent
f300c5a4e5
commit
34d4decc78
|
@ -260,7 +260,7 @@ public class HorizontalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
return false
|
||||
currentPage = 1
|
||||
}
|
||||
|
||||
currentPage += 1
|
||||
|
@ -275,7 +275,7 @@ public class HorizontalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
return false
|
||||
currentPage = pageCount
|
||||
}
|
||||
|
||||
currentPage -= 1
|
||||
|
|
|
@ -266,7 +266,7 @@ public class VerticalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
return false
|
||||
currentPage = 1
|
||||
}
|
||||
|
||||
currentPage += 1
|
||||
|
@ -281,7 +281,7 @@ public class VerticalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
return false
|
||||
currentPage = pageCount
|
||||
}
|
||||
|
||||
currentPage -= 1
|
||||
|
|
Loading…
Reference in New Issue