zhuguifei
2 天以前 7941623b1fb108a154ea4270d7c7e2df6031f6e5
1
2
3
4
5
6
7
8
9
10
11
12
export default function setGrabCursor(moving) {
    const swiper = this;
    if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper
        .params.cssMode) return;
    const el = swiper.params.touchEventsTarget === 'container' ? swiper.$el : swiper.$wrapperEl;
    el.setCss({
        cursor: 'move',
        cursor: moving ? '-webkit-grabbing' : '-webkit-grab',
        cursor: moving ? '-moz-grabbin' : '-moz-grab',
        cursor: moving ? 'grabbing' : 'grab',
    })
}