Voltaire // Allow page-cycling.
This commit is contained in:
parent
ee31712cfe
commit
56e0008dda
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue