react-slideshow icon indicating copy to clipboard operation
react-slideshow copied to clipboard

Slideshow freeze sometimes

Open thomasarbona opened this issue 2 years ago • 3 comments

I use the Slide component like this:

<Slide
  duration={5000}
  transitionDuration={300}
  easing="ease"
  canSwipe={canSwipe}
  pauseOnHover
  onChange={(oldIndex, newIndex) => setCurrentIndex(newIndex)}
>

Everything looks to work fine at multiple places but sometimes, a slideshow freeze for like 10 secondes and unfreeze to continue to play (other slideshow on the page continue to play while one is freezed).

thomasarbona avatar Aug 01 '23 10:08 thomasarbona

@thomasarbona thanks for raising this issue. Can you please recreate this bug on https://codesanbox.io so that it can be investigated well?

femioladeji avatar Aug 05 '23 12:08 femioladeji

In fact in seems that the pauseOnHover feature pause the autoplay longer than the mouse hover, resulting in a "freezing" effect

https://codesandbox.io/s/dazzling-pike-5l43wx

thomasarbona avatar Aug 10 '23 15:08 thomasarbona

prolly it's a device error or component state stuff?

Adesoji1 avatar Nov 13 '23 14:11 Adesoji1