Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle multiple "selected" elements #694

Closed
fregante opened this issue Feb 18, 2018 · 1 comment
Closed

Correctly handle multiple "selected" elements #694

fregante opened this issue Feb 18, 2018 · 1 comment

Comments

@fregante
Copy link

fregante commented Feb 18, 2018

Having multiple items in view, especially with contain: true, has two unwanted behaviors:

  1. Flickity lets you click from 1 to 2, but nothing happens (caused by contain)
  2. There's a selected class, but it only applies to one element (always happens)

You can see both here:

a

Test case: https://codepen.io/anon/pen/dddYvZ

Sadly I had to switch to iDangerous Swiper because it behaves how I want (for 2 it still applies one class, but it never reaches the end, so .active + .slide + .slide lets me select the last visible slide). Its demo http://idangero.us/swiper/demos/110-slides-per-view.html

@desandro
Copy link
Member

Thanks for reporting this issue. See #289 (comment)

@metafizzy metafizzy locked and limited conversation to collaborators Feb 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants