Skip to content

Commit

Permalink
Get index from thumbs is more reliable now
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsroge committed Jan 20, 2016
1 parent 8dcd8ae commit dba9fdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/owl.carousel2.thumbs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! owl.carousel2.thumbs - v0.1.5 | (c) 2015 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */
/*! owl.carousel2.thumbs - v0.1.6 | (c) 2016 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */
/**
* Thumbs Plugin
* @version 2.0.0
Expand Down Expand Up @@ -130,7 +130,7 @@
this._identifier = $(e.target).closest('.' + options.thumbContainerClass).data('slider-id');

// get index of clicked thumbnail
var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).parent().index();
var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).closest('.'+options.thumbItemClass).index();

if (options.thumbsPrerendered) {
// slide to slide :)
Expand Down
4 changes: 2 additions & 2 deletions dist/owl.carousel2.thumbs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/owl.carousel2.thumbs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*! owl.carousel2.thumbs - v0.1.5 | (c) 2015 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */
/**
* Thumbs Plugin
* @version 2.0.0
Expand Down

0 comments on commit dba9fdd

Please sign in to comment.