Open p2er opened 3 years ago
Can you please check if the problem still persists with amp-carousel-1.0? //cc @caroqliu
What script tag would i need to use instead of <script src="https://cdn.ampproject.org/v0/amp-carousel-0.2.js" async="" custom-element="amp-carousel">
? I would assume https://cdn.ampproject.org/v1/amp-carousel-1.0.js but that url does not seem to be the correct one. Neither does https://cdn.ampproject.org/v0/amp-carousel-1.0.js work for me.
Sorry, my fault. Can you please try amp-base-carousel (the successor of amp-carousel)? The prod version is 0.1, but if that doesn't work please try 1.0. Thanks!
Sidenote: @caroqliu & @CrystalOnScript should we recommend using amp-base-carousel over amp-carousel in the docs?
Sounds good. I'll try it. The only thing that kept me from testing with amp-base-carousel was the experimental flag: https://amp.dev/documentation/components/amp-base-carousel/?format=websites If thats no longer the case I would suggest removing the flag :) Keep you posted about the results.
The base-carousel behaves differently but still unexpected. Instead of jumping to the last slide a random slide is being displayed. In the video you will see the floorplans and other images instead of the exterior shots.
What's the issue?
If the amp carousel component is used inside an amp-list it often occurs that the initial slide displayed is the last slide instead of the first slide. On mobile safari the issue can be triggered by switching to a different tab and returning to the tab with the amp-list & amp-carousel combination. On other browsers, e.g desktop chrome, the issue occurs when changing the window size and slides formerly out of viewport become visible.
How do we reproduce the issue?
Safari Mobile
In case the images are shown initially:
Chrome desktop
What browsers are affected?
Safari mobile 14, Chrome desktop Version 89.0.4389.90
Which AMP version is affected?
AMP ⚡ HTML – Version 2103122145004
https://user-images.githubusercontent.com/12771905/112468626-ca97e700-8d68-11eb-8cbf-506d4067ea6c.mov @sebastianbenz I have also attached a video of the problem.