fredleblanc / roundabout

A 3D Turntable jQuery Plugin.
645 stars 204 forks source link

check whether autoplay actually should be restarted after hover #71

Open Aeon opened 12 years ago

Aeon commented 12 years ago

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 commented 12 years ago

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.