diff --git a/assets/js/slick.js b/assets/js/slick.js index 1a86233..bcd2fbc 100755 --- a/assets/js/slick.js +++ b/assets/js/slick.js @@ -1308,7 +1308,7 @@ 'role': 'tabpanel', 'id': 'slick-slide' + _.instanceUid + i, 'tabindex': -1 - }); + }); if (slideControlIndex !== -1) { $(this).attr({ @@ -1319,7 +1319,7 @@ _.$dots.attr('role', 'tablist').find('li').each(function(i) { var mappedSlideIndex = tabControlIndexes[i]; - + $(this).attr({ 'role': 'presentation' }); @@ -1366,7 +1366,7 @@ if (_.options.accessibility === true) { _.$prevArrow.on('keydown.slick', _.keyHandler); _.$nextArrow.on('keydown.slick', _.keyHandler); - } + } } }; @@ -1686,10 +1686,12 @@ if (_.options.accessibility === true) { _.initADA(); - // for non-autoplay: once active slide (group) has updated, set focus on first newly showing slide + // for non-autoplay: once active slide (group) has updated, set focus on first newly showing slide if (!_.options.autoplay) { - var $currentSlide = $(_.$slides.get(_.currentSlide)); - $currentSlide.attr('tabindex', 0).focus(); + var $currentSlide = $(_.$slides.get(_.currentSlide)); + var x = window.scrollX, y = window.scrollY; + $currentSlide.attr('tabindex', 0).focus(); + window.scrollTo(x, y); } } diff --git a/assets/js/slick.min.js b/assets/js/slick.min.js index 1dcaee6..812efe2 100755 --- a/assets/js/slick.min.js +++ b/assets/js/slick.min.js @@ -1 +1 @@ -!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('