Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
vue3-carousel component takes focus from other events in android and mobile view in the browser

Im using vue3-carousel but whenever I am using the carousel it seems to "deactivate" other events.

UPDATE This only happens in android and mobile view in the browser

I did send a bug report here:

For example in the example below, after I have been using and scrolling with the carousel, I need to click the button "hello" twice for it to print in the console. After I have pressed it, it seems to be "activated" and reacts every time it is pressed until Im using the vue3-carousel again when it all starts over.

The strange thing is that it works without problems with the provided codepen but when I am using the same code in my quasar project it wont work and I need to press the button two times for it to react after I have been using the vue3-carousel.

Im using:

    "vue3-carousel": "^0.1.40"
    "quasar": "^2.0.0",
    "vue": "^3.0.0",

Im running out of options. Anyone have a suggestion how to debug this further?

Here is the code and the codepen and as I wrote the codepen works when switching with pressing "hello" button and swiping in the component but in my code it wont react the first time Hello button is pressed after using the carousel

<template>

  <q-header style="height: 50px">
    <q-btn style="background-color: blue" @click="test()">Hello</q-btn>
  </q-header>

  <carousel :items-to-show="1.5">
    <slide v-for="slide in 10" :key="slide">
      <div style="height: 10vh; background: red; width:90%">
        {{ slide }}
      </div>
    </slide>

    <template #addons>
      <navigation />
      <pagination />
    </template>
  </carousel>
</template>

<script>
import 'vue3-carousel/dist/carousel.css';
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel';

export default {
  name: 'App',
  components: {
    Carousel,
    Slide,
    Pagination,
    Navigation
  },
  data () {
    return {
      count: 0
    };
  },
  methods: {
    test () {
      this.count++;
      console.log('Hello world!', this.count);
    }
  }
};
</script>
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda