SSENSE / vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js
https://ssense.github.io/vue-carousel/
MIT License
1.72k stars 504 forks source link

Can't reach the last slides #527

Open arthur-fontaine opened 4 years ago

arthur-fontaine commented 4 years ago

Can't reach the last slides with :perPage='3'and :scrollPerPage="false"

(There is already an issue (#345) that explain what happen, but it is closed. The last message of the #345 issue raise the problem, but it seems that the conversation has been forgotten.)

Current Behavior

Cannot reach the last slides by swiping.

Input Code and steps to reproduce

<carousel ref="carousel" :paginationEnabled="false" :perPage="3" :scrollPerPage="false">
    ...
</carousel>

Expected behavior/code We should be able to reach the last slide.

Babel Configuration (.babelrc, package.json, cli command)

{
  presets: [
    '@vue/cli-plugin-babel/preset'
  ]
}

Environment

Additional context/Screenshots A screen recording of the problem. Here, it stops at 7. The array of carousel values :

["", 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ""]
dennisgeerts commented 4 years ago

I have the same issue. Did you manage to find a solution to this already?

arthur-fontaine commented 4 years ago

I have the same issue. Did you manage to find a solution to this already?

No, I use this instead https://www.npmjs.com/package/vue-awesome-swiper

pawel-sz commented 4 years ago

I have the same issue. Did you manage to find a solution to this already?

it's not a solution, but changing perPage from 5 to 7 helped in my case