Skip to content

Carousel Stop/Start facility #1566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
apparchsysad opened this issue Mar 31, 2025 · 0 comments
Open

Carousel Stop/Start facility #1566

apparchsysad opened this issue Mar 31, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@apparchsysad
Copy link

apparchsysad commented Mar 31, 2025

Summary

A carousel can be annoying in some situations. I've configured mine with a stop/start button that is initially set in the "stop" position. This way, users only see the carousel if they want it.

My problem is that I've been unable to make the "carousel start" part of the button work cleanly. Ideally, I'd like this to immediately advance to the next image and proceed from there with the usual autoplayDuration delay. I've been trying to do this by resetting the value of autoplayDuration from 0 to "x", but while this does restart the carousel, there is a strange "2x" delay before the next image is revealed. This gives the impression that the carousel is broken.

By making the "start carousel" procedure set both index and image as well as autoplayDuration and then "binding" these variables, I've been able to get the carousel to advance immediately to the next image. However, there is still a 2 x autoplayDuration pause before the next image is revealed.

Halfway through the pause, I can see that the "indicator" button is being advanced. Clearly, this gives a clue to the cause of the strange "2x" behaviour, but I've not been able to get any further with the problem.

Basic example

What I'd like is a carouselHalted boolean that will stop the carousel immediately when set to false and start it cleanly, as described above, when reset to true.

Motivation

Enhanced user experience

@apparchsysad apparchsysad added the enhancement New feature or request label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant