question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Changing swipe direction flickers

See original GitHub issue

Environment

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.

https://user-images.githubusercontent.com/50402950/114665627-8f505e80-9cfd-11eb-8dd0-eb90c59e44d0.mp4

Reproducible Demo

Just run the example app of this repo. Start swiping left/right then change the direction.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
elkinjosetmcommented, May 27, 2021

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.

2reactions
adwidianjayacommented, May 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found