Commit 0c3626e
committed
Manually calculating the current scroll view center instead of relying on the convertPoint:toView: method to prevent the wrong currentPage to be calculated when the view is not visible.
1 parent aa9c130 commit 0c3626e
File tree
2 files changed
+5
-2
lines changed- SCPageViewController
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
780 | 783 | | |
781 | 784 | | |
782 | 785 | | |
| |||
0 commit comments