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

Bug - Next/prev arrows should be enabled when there are two or more slides #113

Open
bidwej opened this issue Nov 29, 2021 · 2 comments
Open

Comments

@bidwej
Copy link

bidwej commented Nov 29, 2021

I would like to report a bug in "slide.ts". The next and previous arrows should be shown if there are two or more slides. Instead, arrows are only shown if there are three or more slides due to the following line in "slide.ts".

isNextArrowDisabled() {
return this.isLastSlide(this.counter) ||
(!this.visibleCellsOverflowContainer && this.cellLength <= this.numberOfVisibleCells) ||
(this.visibleCellsOverflowContainer && this.cellLength < this.numberOfVisibleCells)
}

isNextArrowDisabled() {
return this.isLastSlide(this.counter) ||
(!this.visibleCellsOverflowContainer && this.cellLength < this.numberOfVisibleCells) ||
(this.visibleCellsOverflowContainer && this.cellLength < this.numberOfVisibleCells)
}

It's an easy fix, but I thought that others may run into this issue as well. My settings are cellWidth='100%', [lightDOM]='true' and [overflowCellsLimit]='1' for showing one slide at a time with one slide being lazy loaded in the background. Hope this helps. Thank you.

@elemen7s
Copy link

This issue is also stopping the autoplay from executing.

@edu1525
Copy link

edu1525 commented May 6, 2023

I'm also with this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants