akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.61k stars 2.09k forks source link

2315 slick prev refresh #2327

Closed digitalartcrew closed 5 months ago

digitalartcrew commented 5 months ago

#2315

After refresh the value of previousTargetSlide is currently resetting to 0. I replaced with the value of currentSlide which state value persist as same value 0f previousTargetSlide before refresh.

Before refresh:

Screenshot 2024-01-22 at 10 43 47 PM

After refresh:

Screenshot 2024-01-22 at 11 10 00 PM
akiran commented 5 months ago

I don't think this is the fix for the issue you mentioned.