会员权益
This commit is contained in:
12
uni_modules/zebra-swiper/libs/grab-cursor/setGrabCursor.js
Normal file
12
uni_modules/zebra-swiper/libs/grab-cursor/setGrabCursor.js
Normal file
@@ -0,0 +1,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',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user