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 stuck when quick scrolling with loop enabled

See original GitHub issue

The issue is only for iOS, Android works fine. I was able to reproduce it both on real device and in simulator.

I have Swiper with four slides and loop option set to true. When I swipe to one direction very fast, pretty soon the whole slider is stuck and I am no longer able to swipe to that same direction. I can swipe in the opposite direction though, if I do it once (swipe back one slide), then it “unstucks” and I can swipe in the original direction again. From my research it stops on the last slide if I quickly swipe to the left, or on the first slide if I quickly swipe to the right.

The problem is that onMomentumScrollEnd is only fired when the animation ends, but when I swipe quickly (I start new swipe action in the middle of previous animation) animation never ends and callback never fires. It leads to the situation when offset keep growing, a queue of looped slides is never updated and I am able to get to the “end” of the slides even though it is a looped mode. I guess that’s why it only stops on the first or the last slide.

Maybe it is possible to somehow update the state mid-air without waiting for animation to end and without actually interrupting active animation with any visible lags?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jasonchou3commented, Oct 14, 2016

Hi @leecade

it is also stuck when i swipe fast in 1.5.1

1reaction
onlyoneonlycommented, Oct 19, 2016

when swipe to one direction very very fast still stuck but the next swipe will work,and the pagination dot becomes nonresponsive

Read more comments on GitHub >

github_iconTop Results From Across the Web

(NEW) Fix Any iPhone Frozen/Stuck/Loop Screen ... - YouTube
You can also use UltFone iOS System Repair (https://bit.ly/3sBPqo2) to fix any iOS devices frozen / stuck / loop screen without data loss....
Read more >
How to Fix iPhone Screen Keeps Scrolling Up or Down [2022]
Solution 1. Stop iPhone from Keeping Scrolling up with all-in-one repair tool · Solution 2. Update iPhone to the Latest Version · Solution...
Read more >
WKWebView scrolling issue on iOS 13 - Apple Developer
Sometimes you can scroll slowly down the page, but eventually the screen gets stuck in a loop and the page jumps back and...
Read more >
[Solved] Fix an iPhone Stuck on Black Screen Spinning Wheel
If the boot failed, an iPhone may be stuck on a black screen with a spinning wheel. And, you can not use your...
Read more >
iPhone Stuck on Loading Screen with Spinning Wheel
Many iPhone users find their iPhone stuck on spinning wheel or loading screen when they reboot iPhone as usual, try to restore iPhone...
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