slick icon indicating copy to clipboard operation
slick copied to clipboard

pauseOnHover resets autoplay timer

Open shooby83 opened this issue 6 years ago • 2 comments

Hi,

I made a little progress transition on each slick-dot which pauses, when hovering over the dots or slider item and resumes after it. The thing is, that the autoplaySpeed is set to 4000ms and it takes another 4000 ms now until the next slide shows up. So the worst case is, that the timer takes 8000ms when hovered once leading to a fully progressed transition on the dots for 4 seconds.

The expectation for the setting pauseOnHover would be, that the timer resumes on that point where the hover set in.

Please implement a setting "resetTimerAfterPause", so one can choose the desired behavior.

shooby83 avatar Aug 01 '18 07:08 shooby83

Or implement onPause/onPlay event with special css class on the carousel container ?

MikhaelGerbet avatar Aug 23 '18 14:08 MikhaelGerbet

Did anything ever come of this? I'm currently having to use Slick on an inherited project and I agree with @shooby83 that it would be really handy to have a resetTimerAfterPause setting, as I'd be inclined to set it to false.

jasewarner avatar May 31 '23 12:05 jasewarner