flowbite-react
flowbite-react copied to clipboard
`Carousel` scroll snap does not change slides on Firefox
Describe the bug
On Firefox, dragging a Carousel
left or right does not "snap" the Carousel
to the next (dragging left) or previous (dragging right) slide. Instead, you partially scroll however far you dragged.
To Reproduce Steps to reproduce the behavior:
- Create a
Carousel
with at least two images - Attempt to drag horizontally to change slides on Firefox
Expected behavior
Carousel
s should "snap" when dragged to ease user experience, which is implemented correctly in Chromium-based browsers.
Screenshots
Desktop (please complete the following information):
- OS: Linux
- Browser Firefox
- Version 100
Smartphone (please complete the following information): n/a
Additional context n/a
I've also noticed that Carousels move vertically when you drag on mobile, if your drag isn't perfectly horizontal, which is a weird user experience. Movement in the Y plane should be ignored.
I also encountered a similar bug on Safari. Cannot use the control buttons, but dragging to left and right worked. Using next.js as my web framework.
Edit: Should I create a new issue for this?
@julianYaman I guess that we can keep in the same one. I don't have Safari to test it, so... probably someone else will have to test it.
@rluders Alright. Also noticed that the slideInterval didn't work as well. Only dragging atm.
Ill test that and update this
Controls, indicators and interval are all working just fine for me on Safari for iOS/macOS. Are you on an older version of the library by chance? @julianYaman You can also test a live version of the latest updates at https://flowbite-react.com
@tulup-conner Carousel isn't working there. On Chrome (on macOS), they do work. Looks like an Safari-related problem.
Hmm... For me, macOS Safari only has one bug, which is that transitions are instant. I can operate the carousels using any of the controls, including scroll snapping.
Thank you for reporting this issue. However, we regret to inform you that we won't be able to address it for the following reasons:
- The reported issue refers to an unsupported old version of our project.
- Our team was unable to reproduce the problem with the information provided.
- Insufficient information was provided to conduct a thorough investigation.
We recommend upgrading to the latest version and submitting a new issue if the problem persists. Thank you for your understanding.