Skip to content
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

check whether autoplay actually should be restarted after hover #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aeon
Copy link

@Aeon Aeon commented Oct 6, 2012

If you set autoplayPauseOnHover to true but autoplay to false, on initialization, you end up with a carousel that is initially paused, but that starts autoplaying as soon as user mouse moves over it and out again.

Here's a simple demo of the bug: http://jsfiddle.net/Aeon/AMtFn/1/

Open console and note that the carousel is initially paused, but once you mouse over it and mouse out, autoplay starts and isAutoplaying is now true.

Here's the demo after my fix: http://jsfiddle.net/Aeon/AMtFn/2/

Thanks for the great project, it's very nicely done!

PS. I wasn't sure what you use for minification, so I did not update the minified version of the code.

@darthnorman
Copy link

similar problem:
autoplay: true
autoplayPauseOnHover: true
and btnToggleAutoplay is set;
Now, whenever i stop autoplay by clicking on btnToggleAutoplay and then hover over any item and mouse out again, it starts autoplaying although it should still be in "stop"-mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants