Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Carousel hangs up during swiping on Android native Browser #113

Open
sirair opened this issue Feb 4, 2014 · 4 comments
Open

Carousel hangs up during swiping on Android native Browser #113

sirair opened this issue Feb 4, 2014 · 4 comments
Labels

Comments

@sirair
Copy link

sirair commented Feb 4, 2014

Hello,

I note that on Andorid native browser the carousel hangs up through two images. The problem mainly occurs when swiping fast through the images, see screenshot made on Samsung Galaxy S4.

2014-02-04_144233

@revolunet
Copy link
Owner

thanks for reporting. this may be something with touchcancel; will try to get a test device.

@revolunet revolunet added the bug label Feb 10, 2014
@smoke
Copy link

smoke commented Feb 26, 2014

Same with me - this happens with the latest version of the angular-carousel and is valid for Android and iPad.
I was able to reproduce it in Chromium also the same way.

What I found is that it is easier to simulate it this way:

  • swipe left or right and release
  • the slider is transitioning and there is a little pause right before the slide gets its final position
  • during the above period swipe left/right or right/left and release
  • the issue is there

The issue is a bit tough to reproduce, because of the timing you need to achieve.

My guess is that it is either some events overlap or some calculations and rounding issue. Last but not least may be the $scope.$digest call may make some issue also, since it is called somewhere around the time of the issue.

Hope my findings help, I am also after this issue by the way.

@consultingti
Copy link

Hey Revolunet,

I was wondering if you were able to find a solution for the issue as I've experienced it myself.

you mentioned it might be something with the "touchcancel", if you feel this is the right path to start looking for the issue do you mind pin-pointing the line of code. I might have time to spent and see if I can find anything that can help.

regards,

@Madumo
Copy link

Madumo commented Apr 20, 2014

In the swipeEnd function, it get the same destination and offset when calculating the amplitude. So it call requestAnimationFrame(autoScroll) with an amplitude of zero, and the autoScroll method do nothing with an amplitude of zero, so it get stuck there. It happen almost all of the time on an ipad 2 while buffering slides and swiping fast, but i could also get a slide stuck while swiping really fast at the end of the carousel (with no buffering).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants