鼠标悬停在slick.js滑动时不要立即停止

Roh*_*til 8 slick.js

当我设置speed: 1000,pauseOnHover工作正常但是一旦我设置它speed: 10000,pauseOnHover不能立即工作 - 它几秒后工作.

码:

$('#featured_credits').slick({
      infinite: true,
      arrows: true,
      slidesToShow: 4,
      slidesToScroll: 4,
      autoplay: true,
      autoplaySpeed: 0,
      speed: 1000,
      cssEase: 'linear',
      pauseOnHover: true,
      pauseOnFocus: true,
      focusOnSelect: true,
      accessibility: false,
      mobileFirst: true
});
Run Code Online (Sandbox Code Playgroud)

小提琴

zub*_*ada 5

是的,你是对的@Rohit,实际上我认为它是在你输入速度后停止滑动的,当我将速度更改为时会更好,speed: 500所以slidesToScroll: 0.5它会在 0.5 毫秒内停止并在 0.5 毫秒内滚动半幻灯片,检查这里

注:这是我遇到这个问题时的临时解决方案。