amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Missing arrows for AMP Carousel on iOS

Open corvusinaloeCMENA opened this issue 10 years ago • 9 comments

When scrolling up and down the arrows for the image carousel only flash, but they do not remain displayed on the screen. Also when interacting with the carousel (swiping) the arrows are not displayed.

URL used: cdn.ampproject.org/c/s/9to5mac.com/2016/09/14/ios-10-how-to-hate-pressing-the-home-button-to-unlock-change-is-setting-on-touch-id-iphones-ipads/amp/

1.Enable "amp-slidescroll" and "amp-scrollable-carousel" experiments at https://cdn.ampproject.org/experiments.html 2.Go to cdn.ampproject.org/c/s/9to5mac.com/2016/09/14/ios-10-how-to-hate-pressing-the-home-button-to-unlock-change-is-setting-on-touch-id-iphones-ipads/amp/ 3.Scroll down to find the carousel 4. On the carousel, scroll between images.

Expected: The arrows should appear to hint the user that it is a carousel.

Iphone 6s iOS9 Safari 9

corvusinaloeCMENA avatar Sep 20 '16 00:09 corvusinaloeCMENA

Same issue found on Iphone 6s iOS9 Chrome 52.0.27

corvusinaloeCMENA avatar Sep 20 '16 00:09 corvusinaloeCMENA

Working as intended.

camelburrito avatar Sep 20 '16 01:09 camelburrito

is it a bug, or can we make the arrows to be displayed? Is not just a bug in iphone, it happens in android too.

alex-moreno avatar Oct 04 '16 10:10 alex-moreno

what do you mean that works as intended @sriramkrish85

Thanks.

alex-moreno avatar Oct 04 '16 10:10 alex-moreno

You can use the controls attribute to make the arrows permanent . Else they will flash and disappear as a cue to indicate that this is a carousel

camelburrito avatar Oct 04 '16 12:10 camelburrito

Is there any specific attribute on those controls that I have to use? I couldn't find that in the docs.

Thanks a lot

On Tue, 4 Oct 2016, 13:12 Sriram Krishnan, [email protected] wrote:

You can use the controls attribute to make the arrows permanent . Else they will flash and disappear as a cue to indicate that this is a carousel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/5107#issuecomment-251370655, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-5zgBl_2KrzRXN4zF-fDFQ0-nTCoUiks5qwkKygaJpZM4KBHAj .

alex-moreno avatar Oct 04 '16 12:10 alex-moreno

The name of the attribute is 'controls' it is documented as the first thing under 'attributes' here https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md

camelburrito avatar Oct 04 '16 12:10 camelburrito

right, sorry, I am an id_&_*, I saw that page, but I couldn't understand exactly how the attribute works. I'll open a PR with and example around that update that in case

just in case someone else reads this, it is as simple as:

" height="" controls layout="responsive" type="slides">

Simply controls being there should make that work.

On Tue, 4 Oct 2016 at 13:26 Sriram Krishnan [email protected] wrote:

The name of the attribute is 'controls' it is documented as the first thing under 'attributes' here https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/5107#issuecomment-251373351, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-5ztDcXMjiOeirdfELI8tz7U8gHtrGks5qwkXZgaJpZM4KBHAj .

alex-moreno avatar Oct 04 '16 13:10 alex-moreno

The amp-carousel navigation arrows are not visible all the time in mobile but on the desktop, arrows are always displayed unless only a single child is present (according to the official docs) https://www.ampproject.org/docs/reference/components/amp-carousel#controls-(optional). This is a bug which needs to be fixed.

shekankode avatar May 08 '18 08:05 shekankode