Voltaire // Fix Counting Error in Page Cycling.
This commit is contained in:
parent
f45ce68c8f
commit
1be3d18d7b
|
@ -260,10 +260,11 @@ public class HorizontalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
currentPage = 1
|
||||
currentPage = 0
|
||||
} else {
|
||||
currentPage += 1
|
||||
}
|
||||
|
||||
currentPage += 1
|
||||
candidateView.highlightedIndex = 0
|
||||
layoutCandidateView()
|
||||
return true
|
||||
|
@ -275,10 +276,11 @@ public class HorizontalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
currentPage = pageCount
|
||||
currentPage = pageCount - 1
|
||||
} else {
|
||||
currentPage -= 1
|
||||
}
|
||||
|
||||
currentPage -= 1
|
||||
candidateView.highlightedIndex = 0
|
||||
layoutCandidateView()
|
||||
return true
|
||||
|
|
|
@ -266,10 +266,11 @@ public class VerticalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
currentPage = 1
|
||||
currentPage = 0
|
||||
} else {
|
||||
currentPage += 1
|
||||
}
|
||||
|
||||
currentPage += 1
|
||||
candidateView.highlightedIndex = 0
|
||||
layoutCandidateView()
|
||||
return true
|
||||
|
@ -281,10 +282,11 @@ public class VerticalCandidateController: CandidateController {
|
|||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
currentPage = pageCount
|
||||
currentPage = pageCount - 1
|
||||
} else {
|
||||
currentPage -= 1
|
||||
}
|
||||
|
||||
currentPage -= 1
|
||||
candidateView.highlightedIndex = 0
|
||||
layoutCandidateView()
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue