Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

click to change - unable to select a photo for a low width of the screen #181

@piotr-s-brainhub

Description

@piotr-s-brainhub

Issuehunt badges

To Reproduce
Steps to reproduce the behavior:

  1. Open https://brainhubeu.github.io/react-carousel/docs/examples/clickToChange with Safari on iOS (iPhone) so there are three photos and the code is following:
<Carousel
  clickToChange
  slidesPerPage={2}
  centered
>
 <img src={imageOne} />
 <img src={imageTwo} />
 <img src={imageThree} />
</Carousel>
  1. Set the screen to be vertical (default for iPhone) so the screen width is very low.
  2. Try to click on the most left photo.
  3. It's impossible to select the most left photo.
  4. Click the most right photo.
  5. The most right photo occupies all the carousel.
  6. So the only way to show the center photo is to drag.
  7. After dragging, the center photo is shown but not fully.

Expected behavior
4. It should be possible to select the most left photo.
6. The most right photo should occupy most of the carousel but there should be also a space for the center photo, enabling clicking it.
7. It should be possible to show the center photo not only with dragging but also with clicking it.
8. The center photo should be shown fully, with some space for the most left and the most right photo, enabling clicking them.

No photo should be cut or shrunk horizontally.

Instead, the height of the entire carousel should be decreased when needed in order to fit always the selected image and parts of its neighbors, enabling to click them.

Screenshots
Video: https://drive.google.com/file/d/1gkDYx8qPymJh8PKLjNQ3UMp39n6vd_B4/view

Smartphone (please complete the following information):

  • Device: iPhone 5s
  • OS: iOS 12.4.4
  • Browser: Safari (AFAIK Safari version is connected with the iOS version)
  • react-carousel: 1.10.34

IssueHunt Summary

bunysae bunysae has been rewarded.

Backers (Total: $17.00)

Submitted pull Requests


Tips

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions