解决方法:
将源码的Carousel.js的onDrag方法中的
if ((currentActiveIndex === 0 && delta > 0) || (currentActiveIndex === maxIndex && delta < 0)) { delta *= 0.5; }改成
if ((currentActiveIndex === 0 && delta > 0) || (currentActiveIndex === maxIndex && delta < 0)) { return; }
时间: 2024-10-05 22:32:23