-
Notifications
You must be signed in to change notification settings - Fork 39
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
Page snapping not working #19
Comments
Hi, sorry for the delay. Unfortunately I cannot reproduce the issue. The simple demos from EDIT: On iOS 14.5, Xcode 13.2 page snapping works fine |
Hi, I ran into the same issue. I figured out the reason. It seems pretty bizarre that this happens. I removed all Hope this helps. |
@pradeep-spikey-tech Hmmm, could you provide example |
@fredyshox Below is an example, I had created a page view with this format which caused the issue.
I moved the HPageView into a separate View Struct and changed the code structure as follows and it worked:
|
It looks as if there was something funky going on with changing the Although I've tried with |
I may have misunderstood what's happening here, but hopefully a video demo will help show what the issue is. Essentially when I swipe on a page, I can see the next page, but when I stop swiping the pages just stay in the half-transitioned state instead of snapping to either the new or current page based on the threshold.
As far as I can tell from the docs this should work as-is. I've tried passing each of the different
pageGestureType
s to the constructor, and also tried some extreme settings forpageSwitchThreshold
(0.1 and 0.9), but neither of these seems to have any effect.I thought that there could be some issue with an interactor above this component in the view hierarchy, but there's nothing obvious that stands out to me, and I'm not quite sure what to look for. This view originally had an
onTapGesture
handler on it, but I removed that to narrow down the problem.Here's a video of the issue. It's from the simulator for ease of recording, but the same behaviour happens on a real device.
Simulator.Screen.Recording.-.iPhone.13.-.2021-10-22.at.12.43.12.mov
iOS: 14.5, Xcode: 13.0. PageView: 1.5.0
Happy to provide any more information that may help diagnose this!
The text was updated successfully, but these errors were encountered: