cycle icon indicating copy to clipboard operation
cycle copied to clipboard

Timeout speed up caused by hovering pagers

Open 20pictures opened this issue 12 years ago • 3 comments

I am building a gallery using Jquery Cycle. The slides are paused by hovering over the pagers, however, as the page design required the pagers to be close together, it is easy to drag across them & call several. This seems to create a queue (or event bubbling) which I haven't been able to cure. The result is the timeout speeds up & becomes erratic.

see example: http://www.castingimage.com/cycle2/

I tried to fix this with various clearQueue, preventDefault, preventPropogation methods with no success. The closest I have got is by destroying the Cycle & restarting. However, the restarted Cycle stops on the second frame.

see example: http://www.castingimage.com/cycle1/

If you can offer advice on either of these 2 examples it would be appreciated.

20pictures avatar Mar 09 '12 16:03 20pictures

I've just tried the older Version 2.9999.1 - before the bug fix where destroy did not unbind hover events ('pause' option)

It does seem slightly better than the new Version: 2.9999.2 (16-FEB-2012) also, make sure you use pagerEvent: 'mouseenter' NOT pagerEvent: 'mouseover'

CORRECTION: The bug is the same in both versions.

20pictures avatar Mar 09 '12 20:03 20pictures

I think I just fixed this.

malsup avatar Mar 10 '12 01:03 malsup

Version: 2.9999.3 (08-MAR-2012) works for me!

Thanks for the prompt fix I will take a look at your notes...

20pictures avatar Mar 10 '12 07:03 20pictures