You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
322 B
13 lines
322 B
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();
|
|
}
|
|
}
|
|
}
|