splide icon indicating copy to clipboard operation
splide copied to clipboard

Loop does not work (properly / at all)

Open frankykubo opened this issue 2 years ago • 1 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

0.6.6

Description

I am using splide in loop mode. In the most recent version, I noticed that it does not work. Providing details from multiple versions of vue-splide.

Version 0.6.6: It is in loop mode, but looks like classic slide mode with clones visible, when on the edge. Providing video:

https://user-images.githubusercontent.com/50501921/172153055-344f1468-13c5-441a-a3ab-993ca988ad81.mp4

You can see, that when I am the first slide and want to go left, I can see clone but then it goes back.

Version 0.6.5:

Again, loop mode and acting like slide, but with rewind set to true. So basically, in this version it (somehow) works, but not as expected. Video:

https://user-images.githubusercontent.com/50501921/172153748-e5e5ac82-9cc1-4841-9962-11d94fd7a7af.mp4

Version 0.6.4:

Works as expected. Video:

https://user-images.githubusercontent.com/50501921/172154067-970dba5d-681b-4029-9f67-667d8e98a152.mp4

Thank you.

Reproduction Link

No response

Steps to Reproduce

  1. Run Vue 3 Typescript project
  2. Use Splide with mentioned versions
  3. Change mode to loop

Expected Behaviour

Loop should work as expected, not like rewind or not at all.

frankykubo avatar Jun 06 '22 11:06 frankykubo

I've checked this and it's working as I expected. https://codesandbox.io/s/823-kcq6jk?file=/src/components/BasicExample.vue

NaotoshiFujita avatar Jun 11 '22 18:06 NaotoshiFujita