femioladeji / react-slideshow

A react component for slideshow supporting slide, fade and zoom
https://react-slideshow-image.netlify.app/
MIT License
359 stars 71 forks source link

Slideshow freeze sometimes #216

Open thomasarbona opened 11 months ago

thomasarbona commented 11 months ago

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).

femioladeji commented 11 months ago

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

thomasarbona commented 10 months ago

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

Adesoji1 commented 7 months ago

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