stefanceriu / SCPageViewController

Just like UIPageViewController but better.. :)
MIT License
352 stars 70 forks source link

Swiping sometimes stops showing partial page #13

Open mvoong opened 9 years ago

mvoong commented 9 years ago

In the example app, it is possible for the scroll view to stop in the wrong place. You can reproduce this by swiping rapidly with multiple fingers, sometimes in opposite directions. After it gets to this state, swiping works as normal, until it happens again.

animation stuck

I looked at the code to see if there was anything obvious going wrong but I didn't find anything.

This happens on an iPhone 6 running iOS 8.4 and the Simulator running 8.4 and 8.1.

stefanceriu commented 9 years ago

Right, I think I have an idea where that's coming from. I'm going to try to fix it asap.

stefanceriu commented 9 years ago

I'm having a real bad time trying to reproduce this constantly but it looks like it only happens when interacting with the picker view. Can you do me a favor and try to reproduce it after removing the picker view from the hierarchy ?

mvoong commented 9 years ago

Thanks for looking at this. Sorry for the delay, been tied up with other work.

Ah, yes, the problem completely goes away when there isn't a nested scroll view. It seems like during scrolling of the page view controller, if you interact with an inner scroll view, it cancels scrolling. Setting scrollEnabled to NO on the inner scroll views fixes this.

stefanceriu commented 9 years ago

Okay, cool. I'll keep looking into it, maybe there's a way around this limitation.

gralexey commented 7 years ago

Same, without inner scroll views

AlMalKii07 commented 3 years ago

__