Answer the question
In order to leave comments, you need to log in
Why does the error "Unable to preventDefault inside passive event listener invocation" pop up in Glidejs?
Why, when clicking on the buttons in the slider on the phone, such an error pops up:
Unable to preventDefault inside passive event listener invocation?
For the slider, I use the vue-glide-js plugin.
<client-only>
<vue-glide
class="slider__wrapper"
:options="sliderOptions"
v-model="numActiveSlide"
>
<vue-glide-slide
class="slider__slide"
v-for="(slide, index) in slides"
:key="index"
>
<img
class="slider__slide-image"
:src="require(`@/static/images/${slide}`)"
alt=""
/>
</vue-glide-slide>
<template slot="control">
<button class="slider__btn" data-glide-dir="<">
<img :src="require('@/static/icons/prev.svg')" alt="" />
</button>
<button class="slider__btn" data-glide-dir=">">
<img :src="require('@/static/icons/next.svg')" alt="" />
</button>
</template>
</vue-glide>
</client-only>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question