-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PageBoyViewController freeze when push a new VC during auto-scrolling transition #166
Comments
I have the same issue except I am not using auto scroll (direct). I load a 3 paged table view, and when the user clicks on tab if it is empty (for first time) it pushes to new VC. When user hits back the view is frozen and will not respond |
I'm not sure if this happen because the completion block of ...
self.isScrollingAnimated = animated
let direction = directionForPageScroll(to: page, index: rawIndex)
let transitionCompletion: TransitionOperation.Completion = { (finished) in
if finished {
let isVertical = self.navigationOrientation == .vertical
let currentPosition = CGPoint(x: isVertical ? 0.0 : CGFloat(rawIndex),
y: isVertical ? CGFloat(rawIndex) : 0.0)
self.currentPosition = currentPosition
self.currentIndex = rawIndex
// if not animated call position delegate update manually
if !animated {
self.delegate?.pageboyViewController(self,
didScrollTo: currentPosition,
direction: direction,
animated: animated)
}
}
self.autoScroller.didFinishScrollIfEnabled()
completion?(viewController, animated, finished)
self.isScrollingAnimated = false
}
... setting |
I am using Tabman in combination with Pageboy, I made no changes to my code except update pod and the error occurred. Reverted Pagepoy to 2.3 & Tabamn to 1.5.2 and now is working no problem. Will wait for fix |
@corbinhudson @nsmag okay will check it out! Looks like it was probably a regression with updating the transition stuff in 2.4 |
@nsmag @corbinhudson could you try 2.5.3 and see if that fixes the issues you're having? I managed to reproduce issues when pushing a new VC during an animated transition - which are now fixed as seen below: |
@nsmag okay thanks for that! Will check it out 👍 |
@msaps Sorry I forgot to I'll test it on my project. |
I tested in my project with updates, working now thanks! |
@nsmag An additional tweak I want to make is to pause the auto scrolling when With your implementation in the |
@msaps I totally forgot about child VC. I'll try another test. thanks! |
@msaps about pageboy in table view, it's my bad, I just forgot |
Freezes on iPhone 6s Plus iOS 12.3.1 with scrollToPage. Pageboy version: 3.3.0. Edit: It's solved now. Here's what I thought was happening:
|
If push a VC when the auto-scroll transition start, when back to the PageBoyVC, it will not respond to scroll/tap and autoScroller stop working too.
This is only happen with autoScroller. It's working fine with user-scroll
The text was updated successfully, but these errors were encountered: