Openui5: sap.m.Carousel: forward loop impossible if "visiblePagesCount" > 1

Created on 30 Aug 2019  路  3Comments  路  Source: SAP/openui5

URL (minimal example if possible):

https://openui5nightly.hana.ondemand.com/test-resources/sap/m/Carousel.html

Steps to reproduce the problem:

  1. Open the above sample page. The loop property of the Carousel is already enabled.
  2. Change the value in _Number of pages to be shown in Carousel's visible area_ below to something higher than 1.
  3. Try to loop forwards.

What is the expected result?

Looping with multiple visible pages works.

What happens instead?

It doesn't

Any other information? (attach screenshot if possible)

Backward looping works.

bug fixed

Most helpful comment

Hello @boghyon

When "visiblePagesCount" is set to something higher than 1, looping shouldn't be possible. This is documented here https://sapui5.hana.ondemand.com/#/api/sap.m.CarouselLayout in the description of this property. However, until now looping was possible backwards, but this is fixed with 7ccb18e

Regards,
Petar

All 3 comments

Hi,
Thank you for sharing this finding. I've created an internal incident 1980360836. The status of the issue will be updated here in GitHub.
Regards,
Nikolay Hristov

Hello @boghyon

When "visiblePagesCount" is set to something higher than 1, looping shouldn't be possible. This is documented here https://sapui5.hana.ondemand.com/#/api/sap.m.CarouselLayout in the description of this property. However, until now looping was possible backwards, but this is fixed with 7ccb18e

Regards,
Petar

I see, it was the other way around :) thanks for clarifying and fixing it!

Was this page helpful?
0 / 5 - 0 ratings