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

PATCH - Bug when you click on the next button #20

Open
lakano opened this issue Jun 12, 2012 · 0 comments
Open

PATCH - Bug when you click on the next button #20

lakano opened this issue Jun 12, 2012 · 0 comments

Comments

@lakano
Copy link

lakano commented Jun 12, 2012

Hello,

I have found a bug when you click on the next button. If it's the last page of slides, you can click again and this block the navigation previous/next.

Here is the patch to fix it, line 614, replace this :

next_slide_number = slide_number_conversion_array[Math.ceil(current_slide_number / number_slides_visible)];

by this code :

                        var index = Math.ceil(current_slide_number / number_slides_visible);
                        if (index >= slide_number_conversion_array.length) {
                            next_slide_number = slide_number_conversion_array[slide_number_conversion_array.length - 1];
                        } else {
                            next_slide_number = slide_number_conversion_array[index];
                        }

Regards,

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

1 participant