carousel组件首页往右拖动和最尾页往左拖动有白屏问题

解决方法:

将源码的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;
        }
posted @ 2014-11-15 08:51  小曹ydj  Views(370)  Comments(0)    收藏  举报