会员权益
This commit is contained in:
13
uni_modules/zebra-swiper/libs/events/onClick.js
Normal file
13
uni_modules/zebra-swiper/libs/events/onClick.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export default function onClick(e) {
|
||||
const swiper = this;
|
||||
if (!swiper.enabled) return;
|
||||
|
||||
if (!swiper.allowClick) {
|
||||
if (swiper.params.preventClicks) e.preventDefault();
|
||||
|
||||
if (swiper.params.preventClicksPropagation && swiper.animating) {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user