Closed (fixed)
Project:
Views Slideshow
Version:
7.x-3.x-dev
Component:
Cycle
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 23:24 UTC
Updated:
2 Feb 2017 at 18:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
redndahead commentedI think this is something you'll have to implement using your own javascript. I don't think this is an option I want to implement.
Comment #2
thalism commentedI need this feature too... but I have no idea how to do this.
Comment #3
dustinyoder commentedI would also use this feature. It should be easy enough to add as an option next to the 'pause' on mouseover.
Comment #4
dustinyoder commentedHere is the feature implemented in 7.x-3.0 I have included the 2 files I modified and you can find the edits by searching for the word 'CARLISLE' there should be 3 sections where I added code.
Comment #5
dustinyoder commentedComment #6
burningdog commentedI'd also like this. Facebook have implemented this in their photo Albums: in an album listing, the slideshow starts when mousing over an Album image.
I've put #4 into a patch. The problem is it doesn't work. More specifically, the 'hover' event is not picked up by the javascript unless the slideshow is actually playing.
To verify, set up a new slideshow, and set it to start paused. Add some controls so that you can see when the 'hover' event is picked up (i.e. the controls say either "pause" or "resume"). Check the new 'Play on hover' checkbox in the slideshow settings. Then preview the slideshow.
Hover over the slideshow image, and notice that nothing happens. Then use the controls to play and immediately pause the slideshow. Move the cursor away, and then back over the slideshow - it will start playing.
I think this bug is by design, i.e. the creators never considered the possibility that there would be some interaction with the slideshow before it started playing. I can't see where in the code this is set.
Comment #7
burningdog commentedOoh, thanks to sideswitch for pointing me to #7 at #985712: check for state pause==1 right before cycle resume to allow custom pause which shows we can force the playing of the slideshow, like so:
And that works! Patch attached.
Comment #8
nickdickinsonwildeComment #10
nickdickinsonwildeAdjust it slightly more, added states to the checkbox in the config so that you can't select 'play on hover' and 'pause on hover' at the same time.
Thanks for the patch!