keen-slider
keen-slider copied to clipboard
Slide rewinds back
If we press the slide forward button repeatedly, it goes back.
sample: https://codesandbox.io/s/determined-glitter-b9rvzq
- we push next-button many times
- we resize window size (it doesn't matter)
- we press next-button repeatedly and stop when No.1 slide comes to the center.
- we press it again, it goes back when No.2 slide comes.
https://user-images.githubusercontent.com/42022035/183349078-6ddc8006-a2f8-4d3f-8ca3-aca24c6b80da.mov
I was able to reproduce the problem and am already working on a solution.
Hey guys, I'm experiencing the same issue. I hope we can get a solution soon. Thank you very much!
Any progress with this issue?
I ran into the same issue, i made this plugin to work around the issue until resolved.
export const FixRewind = (slider) => {
slider.on('animationEnded', (slider) => {
const { rel, progress } = slider.track.details;
if (rel === 0 && progress !== 0) {
slider.moveToIdx(0, true, { duration: 0 });
}
});
};