infinity-forge
Version:
17 lines • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = onClick;
function onClick(e) {
var 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();
}
}
}
//# sourceMappingURL=onClick.js.map