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

Custom scrollbar inside .owl-thumbs #25

Open
ArtemGoldsmith opened this issue May 30, 2017 · 0 comments
Open

Custom scrollbar inside .owl-thumbs #25

ArtemGoldsmith opened this issue May 30, 2017 · 0 comments

Comments

@ArtemGoldsmith
Copy link

Hello! I have just encountered problem: when I added mCustomScrollbar to .owl-thumbs it didn't work, so I found a solution and I hope it can help you to improve your plugin. You should switch your ".children()" with ".find()" in this parts of code:
$(this._thumbcontent._thumbcontainer).on('click', this._thumbcontent._thumbcontainer.children()
to
$(this._thumbcontent._thumbcontainer).on('click', this._thumbcontent._thumbcontainer.find('.' + options.thumbItemClass)
and
thumbContainer.children().filter('.active').removeClass('active'); thumbContainer.children().eq(this.owl_currentitem).addClass('active');
to
thumbContainer.find('.' + options.thumbItemClass).filter('.active').removeClass('active'); thumbContainer.find('.' + options.thumbItemClass).eq(this.owl_currentitem).addClass('active');

@ArtemGoldsmith ArtemGoldsmith changed the title Custom scroll bar inside .owl-thumbs Custom scrollbar inside .owl-thumbs May 30, 2017
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