最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a way to disable slick slider from autoscrolling when clicked on navigation slider? - Stack Overflow

programmeradmin5浏览0评论

There's the slider syncing functionality that I need to use (can be seen here / when you scroll down a bit), but, as we can see, when you click on the navigation slide, the whole navigation autoslides further, I'd like to disable this functionality so that the main slide changes, but the navigation stays at the same level as it is until I click next or previous arrow.

Is there a setting for that or do I have to change the core to achieve this?

jsfiddle / - so now if you click on navigation, it scrolls, I want to disable that scrolling.

There's the slider syncing functionality that I need to use (can be seen here http://kenwheeler.github.io/slick/ when you scroll down a bit), but, as we can see, when you click on the navigation slide, the whole navigation autoslides further, I'd like to disable this functionality so that the main slide changes, but the navigation stays at the same level as it is until I click next or previous arrow.

Is there a setting for that or do I have to change the core to achieve this?

jsfiddle http://jsfiddle/9kp36e09/ - so now if you click on navigation, it scrolls, I want to disable that scrolling.

Share Improve this question edited May 3, 2015 at 11:17 Xeen asked May 3, 2015 at 11:06 XeenXeen 7,00317 gold badges69 silver badges112 bronze badges 6
  • You mean that if I click on slider #4 for example it centers itself automatically? if so look at the variable centerMode: true, – odedta Commented May 3, 2015 at 11:11
  • @odedta I've set that to false and it doesn't do what I need :( – Xeen Commented May 3, 2015 at 11:12
  • @odedta added link to jsfiddle in post. – Xeen Commented May 3, 2015 at 11:18
  • So basically, you want a static thumbnail bar? – odedta Commented May 3, 2015 at 11:19
  • @odedta yes, until a click on the next or previous is clicked. – Xeen Commented May 3, 2015 at 11:19
 |  Show 1 more ment

3 Answers 3

Reset to default 11

Well, it is not in the documentation, but I fixed it by add the accessibility to false. e.g:

$('#sliders').slick({
    accessibility: false
});

set focusOnSelect: false for the nav.

I had the exact same problem and it worked. please refer to this

touchMove: false

u can read in the doc : https://react-slick.neostack./docs/api

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论