Skip to content

Commit

Permalink
[FIX] IE fix, Use tab to navigate slider
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Jun 15, 2016
1 parent ba0b700 commit 6628cbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/js/main/contentElements/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
var focusIndex = $(e.target).parents('.swiper-slide').index();
//Reset scrollLeft set by browser on focus
swiper.container.scrollLeft(0);

// IE fix
setTimeout(function() {
swiper.container.scrollLeft(0);
}, 0);

//Slide to focused slide
swiper.slideTo(focusIndex);
});
Expand Down

0 comments on commit 6628cbe

Please sign in to comment.