amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP-Carousel - Fast swiping cause image to jump/skip on mobile

Open merakmarey opened this issue 6 years ago • 20 comments

Open full screen mode, swipe "aggresively" and image will skip.

Chrome mobile/Samsung Mobile

try https://us.trapichero.com/a/miami/florida/housing/houses-for-sale/2034-sw-22-terr-miami-fl-33145-silver-bluff/1578449427-63.html

merakmarey avatar Jan 08 '20 04:01 merakmarey

Hi @merakmarey, thanks for filing the issue! I tried this out on the Chrome mobile app on iPhone X iOS 13.3 and Pixel 3 XL on Android 10 and was not able to reproduce. Can you provide a video of the unexpected behavior you are experiencing?

caroqliu avatar Jan 10 '20 16:01 caroqliu

Hi Caroline!

A real fan of the AMP Project here...

Video shows that when you swipe faster from right to left the image will skip

Samsung Internet 10.2.00.53 & Chrome 79.0.3945.116

Samsung Galaxy A50, Android 9

WhatsApp Video 2020-01-11 at 7.42.00 PM.zip

merakmarey avatar Jan 12 '20 01:01 merakmarey

Hi Caroline! No news for this?

merakmarey avatar Jan 25 '20 04:01 merakmarey

Ping on this as well.

dvoytenko avatar Apr 01 '20 00:04 dvoytenko

Taking a look.

alanorozco avatar Apr 01 '20 18:04 alanorozco

I can't believe this hasn't been addressed by now. I've had this problem with a website I made a long time ago.

https://baynedg.com if you go to the portfolio page. https://baynedg.com/portfolio on my Pixel 2 it will start skipping images. Just go aggressive and try to view images through the carousel. Even without being aggressive, it will skip here and there. Just start clicking through multiple images. I only bring this topic back up because I'm back working on the site and noticed this is still an issue. I can't recall but I used to be able to crash the entire site by quickly launching the multi-view in the top left on desktop or mobile.

monstermage avatar Jun 23 '20 03:06 monstermage

@alanorozco was taking a look at it...maybe he got covid'ed? 😨 Maybe @caroqliu can give some light on it?

merakmarey avatar Jun 23 '20 04:06 merakmarey

Waiting for this as well. Can't figure out what I'm doing wrong (using Galaxy Note9). Open carousel, swipe from slide 1 to next. As soon as it finishes sliding to slide 2, it blinks and shows slide 3. Repeat process, as soon as it finishes sliding to 4, it blinks and shows 5, and so on... Interestingly, going backwards works fine.

Here's an example: https://youtu.be/lge7pQMCLmc

lucasmodena avatar Nov 06 '20 10:11 lucasmodena

Yes indeed.

https://aironellc.com is a perfect example.

On Fri, Nov 6, 2020, 5:45 AM lucasmodena [email protected] wrote:

Waiting for this as well. Can't figure out what I'm doing wrong (using Galaxy Note9). Open carousel, swipe from slide 1 to next. As soon as it finishes sliding to slide 2, it blinks and shows slide 3. Repeat process, as soon as it finishes sliding to 4, it blinks and shows 5, and so on... Interestingly, going backwards works fine.

Here's an example: https://youtu.be/lge7pQMCLmc

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/26249#issuecomment-723012343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5XP23VARRXRF52E5MYS4TSOPHVRANCNFSM4KECTTZQ .

monstermage avatar Nov 06 '20 13:11 monstermage

hi @merakmarey can you please provide the code that you used in https://www.youtube.com/watch?v=lge7pQMCLmc&feature=youtu.be

in a jsbin?

This would greatly help our debugging efforts.

micajuine-ho avatar Feb 23 '21 19:02 micajuine-ho

Hi Micajuine

Video was not created by me but any carousel will do as good.

Code below was extracted from https://amp.dev/documentation/components/amp-carousel/

If you go to the last carousel and swipe "aggressively" from right to left you will see the issue.

You can also try the first url provided in the issue.

https://us.trapichero.com/a/miami/florida/housing/houses-for-sale/2034-sw-22-terr-miami-fl-33145-silver-bluff/1578449427-63.html

Let me know if you need more.

Thanks

<amp-carousel type="slides" width="450" height="300" controls loop autoplay delay="3000" data-next-button-aria-label="Go to next slide" data-previous-button-aria-label="Go to previous slide" role="region" aria-label="Looping carousel"> <amp-img src="/static/inline-examples/images/image1.jpg" width="450" height="300"></amp-img> <amp-img src="/static/inline-examples/images/image2.jpg" width="450" height="300"></amp-img> <amp-img src="/static/inline-examples/images/image3.jpg" width="450" height="300"></amp-img> </amp-carousel>

merakmarey avatar Feb 23 '21 19:02 merakmarey

Just in case you do need more

https://jsbin.com/simuxixowi

merakmarey avatar Feb 23 '21 20:02 merakmarey

This issue only seems to be present in amp-carousel 0.1 @merakmarey

micajuine-ho avatar Feb 24 '21 15:02 micajuine-ho

You are correct. Using 0.2 fixes the issue. Great catch! Good job!

merakmarey avatar Feb 24 '21 15:02 merakmarey

If 0.2 fixes the issue, I suggest you migrate to using it, since 0.1 support is limited--we are looking to deprecate it soon.

micajuine-ho avatar Feb 25 '21 21:02 micajuine-ho

Awesome.. idea... why not have a latest version link for this and all components? ... like jQuery does?..that way devs don't have to go in and manually update deprecated versions...

merakmarey avatar Feb 25 '21 23:02 merakmarey

I'm not sure what jQuery does, but the latest support can always be seen on amp.dev: https://amp.dev/documentation/components/amp-carousel/

that way devs don't have to go in and manually update deprecated versions...

Maybe this is something we can provide as part of the deprecation process of amp-carousel 0.1

micajuine-ho avatar Feb 26 '21 15:02 micajuine-ho

what I am saying is that instead of:

developers can do:

where amp-carousel-latest.js will always be a copy of the latest version of the component...0.2..0.3..0.4 and on...

A simpler way to always point to the latest component versions...

merakmarey avatar Feb 27 '21 13:02 merakmarey

@alanorozco You mentioned that *-latest.js is buggy, could you elaborate on that?

micajuine-ho avatar Mar 01 '21 22:03 micajuine-ho

You are correct. Using 0.2 fixes the issue. Great catch! Good job!

0.2 fix it , thanks

egphp avatar Mar 08 '22 04:03 egphp