首页 > 解决方案 > 移动设备的子类别轮播箭头不起作用

问题描述

打开箭头以移动使用子类别轮播。如果手机是 iOS 设备,则在您的手机上查看登台时,箭头不起作用。您可以滑动,但是当您单击箭头时,它们不会在滑块内移动图像。当您在桌面上以移动方式查看它时,它确实有效。这是代码:

$(".subCategories").slick({
<? if ($totalSubcategories > 4): ?>
  centerMode: true,
  centerPadding: '15px',
<? endif ?>
  slidesToShow: 4,
  slidesToScroll: 1,
  swipeToSlide: true,
  responsive: [
    {
      breakpoint: 801,
      settings: {
        centerMode: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        arrows: true,
        swipeToSlide: true
      }
    },
    {
      breakpoint: 500,
      settings: {
        centerMode: true,
        centerPadding: '5px',
        slidesToShow: 1,
        slidesToScroll: 1,
        arrows: true,
        swipeToSlide: true
      }
    }
  ]
});

标签: iosmobilecarouselarrows

解决方案


推荐阅读