guilhermearaujo / GUITabPagerViewController

MIT License
454 stars 69 forks source link

Wrong tab index #10

Closed ghost closed 7 years ago

ghost commented 9 years ago

Sometimes if you swipe quickly between the tabs the tab index shows to the wrong tab

guilhermearaujo commented 9 years ago

I couldn't reproduce it. Can you give more details? How many tabs are you using? Do you swipe back and forth, or in a single direction?

ghost commented 9 years ago

We are testing on an iPhone 5C with an application that uses 5 tabs. We swipe back and forth and in some case the index in showing the second tab (from the left) but i cannot swipe further to the right because the viewpager is already to the leftmost viewcotroller.

In the image below you can see that you cannot swipe more to the left but the index is not in the leftmost position

img_0006

Thanks

guilhermearaujo commented 9 years ago

I kept trying but couldn't reproduce it. How easy or how hard is it for you to achieve that state? The view controller that is being shown, is it the left-most controller? I mean, does it reflect correctly the content of the "Main" tab (despite the indicator display "Local")? If you swipe from the right, will the indicator remain in the "Local" tab?

ghost commented 9 years ago

Ok, its not something that happens every time and I only managed to produce on iPhone 5C and you must swipe between tabs quickly, I tried on iPad too and I was unable to reproduce it. I assume that it has to do with the horizontal scroll on the tabs and because on iPad I did not have scroll because screen was bigger the issue was not appearing.

The view controller was the left most and the data were the correct ones, only the tab indicator was wrong. When you swipe right the indicator will remain to Local, in other words once you swipe again it comes back to the correct order.

I will have a look in your source code too and investigate more, I assume that the issue has to do with the scroll.

Thanks

filipandrei87 commented 9 years ago

Hi. What is the status on this?

I found that on older devices using iOS 7, page view controller delegate methods are not reliable for setting the index when fast swiping through pages. Maybe this is the same as I saw you also use a pageviewcontroller

jayjayesh commented 9 years ago

i am facing same problem of tab indexing. is anyone solve this issue?

Thnks