admin管理员组文章数量:1344204
How can I disable focus in slick slider when I click in slider or control button slider was focused in center monitor and when I scroll page after some time page back to slider. I tried focusOnSelect: false
it's not working.
$(".page-work article .field-name-field-image-p .field-items").slick({
/* adaptiveHeight: true, */
autoplay: false,
arrows: true,
focusOnSelect: false,
dots: true,
});
How can I disable focus in slick slider when I click in slider or control button slider was focused in center monitor and when I scroll page after some time page back to slider. I tried focusOnSelect: false
it's not working.
$(".page-work article .field-name-field-image-p .field-items").slick({
/* adaptiveHeight: true, */
autoplay: false,
arrows: true,
focusOnSelect: false,
dots: true,
});
Share
Improve this question
edited Jul 12, 2016 at 9:12
Rory McCrossan
338k41 gold badges320 silver badges351 bronze badges
asked Jul 12, 2016 at 9:10
MojitoMojito
11 gold badge1 silver badge2 bronze badges
1
- Choose the answer that solves your problem, please – lucifer63 Commented Dec 19, 2018 at 13:53
2 Answers
Reset to default 13Try this:
$('.your-class').slick({
accessibility: false,
});
The cause:
https://github./kenwheeler/slick/blob/1.8.0/slick/slick.js#L1703
try making centerMode: false
Reference from http://kenwheeler.github.io/slick/
本文标签: javascriptHow can I disable focus in slick sliderStack Overflow
版权声明:本文标题:javascript - How can I disable focus in slick slider - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743713846a2526397.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论