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

Adding disabled navigation #25

Closed
happyduong opened this issue May 2, 2014 · 4 comments
Closed

Adding disabled navigation #25

happyduong opened this issue May 2, 2014 · 4 comments

Comments

@happyduong
Copy link

I have suggestion adding disabled navigation if total items = visible items
In function:

Owl.prototype.updateNavigation

add:

if (this.pos.current === this.pos.max) {
     this.dom.$navNext.addClass('disabled');
}

and add css style for .disabled

opacity: 0.5;
cursor: default;
@happyduong happyduong reopened this May 2, 2014
@happyduong
Copy link
Author

My intention is if max items = visible items.
i seeing only button prev is disabled
and button next is not disabled

@happyduong
Copy link
Author

still bugs with navigation in beta 1.7
hope will update in next beta

@happyduong
Copy link
Author

still some bugs:

if loop: false, last dot not working
prev or next navigation not disabled when loop: false,

www.ocvninfo.net

@happyduong
Copy link
Author

ok. good work

@ghost ghost closed this as completed May 4, 2014
This issue was closed.
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