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

"Contain: true" on wide monitor cause problem with prev next buttons #619

Closed
Akamajin opened this issue Aug 21, 2017 · 3 comments
Closed

Comments

@Akamajin
Copy link

Akamajin commented Aug 21, 2017

Hi
When scrolling with prev or next button, upon reaching the end I can still click those buttons. after certain clicks it gets disabled. Increasing the page width emphasizes the effect. For example I have to click 4 times to start scrolling on 2560 pixel wide monitor.
When pageDots sets to true I can see what is really happening. But it doesn't make sense.

This is a fork from your examples. please don't tell me it is not reduced :)
https://codepen.io/Akumajin/pen/MvVNxM

@yaodingyd
Copy link

@Akamajin that's how it's intended. The official guide says it all:

Contains cells to carousel element to prevent excess scroll at beginning or end.

Basically it means at beginning or end, if a cell is already in view and there are not enough cells to scroll to make it center-aligned, prevent the "excess" scroll, so there is no blank space for the first or last cell to be centered.

@desandro
Copy link
Member

desandro commented Aug 22, 2017

Thanks for reporting this issue. See #289 (comment)
Closing here as a duplicate.

@desandro
Copy link
Member

Duplicate of #289

@desandro desandro marked this as a duplicate of #289 Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants