1 | export default function onClick(e) {
|
2 | const swiper = this;
|
3 | if (!swiper.enabled) return;
|
4 |
|
5 | if (!swiper.allowClick) {
|
6 | if (swiper.params.preventClicks) e.preventDefault();
|
7 |
|
8 | if (swiper.params.preventClicksPropagation && swiper.animating) {
|
9 | e.stopPropagation();
|
10 | e.stopImmediatePropagation();
|
11 | }
|
12 | }
|
13 | } |
\ | No newline at end of file |