You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
The text was updated successfully, but these errors were encountered:
ArtemGoldsmith
changed the title
Custom scroll bar inside .owl-thumbs
Custom scrollbar inside .owl-thumbs
May 30, 2017
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');
The text was updated successfully, but these errors were encountered: