A
A
Alexander Yakovlev2022-02-28 15:04:52
JavaScript
Alexander Yakovlev, 2022-02-28 15:04:52

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

1 answer(s)
R
Rsa97, 2022-02-28
@Rsa97

https://qna.habr.com/q/605289

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question