[iOS] Changing swipe direction flickers
See original GitHub issueEnvironment
iPhone 11 iOS: 14.4 Example app
Description
When swiping on Android back and fort the position
stays the same and the offset
is changing only.
Example:
[Wed Apr 14 2021 08:27:02.615] LOG Position: 1 Offset: 0.023148147389292717 // swiping left
[Wed Apr 14 2021 08:27:02.787] LOG Position: 1 Offset: 0.02500000037252903 // swiping left
[Wed Apr 14 2021 08:27:02.820] LOG Position: 1 Offset: 0.02777777798473835 // swiping left
[Wed Apr 14 2021 08:27:05.399] LOG Position: 1 Offset: 0.02500000037252903 // swiping right
[Wed Apr 14 2021 08:27:05.433] LOG Position: 1 Offset: 0.023148147389292717 // swiping right
When swiping on iOS back and fort both the position
and the offset
is changing.
Example:
[Wed Apr 14 2021 08:30:40.408] LOG Position: 1 Offset: 0.047101449221372604 // swiping left
[Wed Apr 14 2021 08:30:40.435] LOG Position: 1 Offset: 0.050724636763334274 // swiping left
[Wed Apr 14 2021 08:30:41.305] LOG Position: 0 Offset: 0.9504830837249756 // swiping right
[Wed Apr 14 2021 08:30:41.326] LOG Position: 0 Offset: 0.9528985619544983 // swiping right
[Wed Apr 14 2021 08:30:41.345] LOG Position: 0 Offset: 0.95652174949646 // swiping right
This behaviour messes up the animation. iOS should behave like android Heres a video that shows the bug, just watch the bottom paginating circles.
Reproducible Demo
Just run the example app of this repo. Start swiping left/right then change the direction.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Flicker on top left of screen after exiting app.
Flicker on top left of screen after exiting app. I have an iPhone XS only a month old running iOS 12.1 with 256...
Read more >Apple iPhone 13 Screen Flickering? Here's how you fix it!
This post will walk you through fixing the iPhone 13 screen flickering issue. Easy guide to fix iOS 15 display problems.
Read more >How To Fix Apple iPhone 13 Screen Flickering Issue - iKream
Try changing the screen brightness to a lower level and then observe your iPhone to see if the screen flickering issue occurs.
Read more >iOS 14 Beta 5. Screen flashes when swiping to App Library
If it is a bug in iOS, you can report the bug officially to Apple by doing one of the following: Reporting via...
Read more >9 Ways to Fix iPad Screen Flickering Issue [Guide] - iMobie
Step 4. Return to the accessibility menu, then move the slider to the “Allow” position in front of Reduce Motion. 3. Force Quit...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would keep the overdrag enabled by default on iOS, because that’s a default behaviour on iOS.
I theory, returning only position -1 on the onPageScroll when is dragging to the left from the first page makes sense, since dragging to the any other page, from any page different than 0, will return the “upcoming” position.
Same here, swipe back giving inconsistent position on iOS. I’ve tried change the version since 5.1.0 but always got the same behaviour.