Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
In Swiper.js, why the carousel scrolls in a different direction when holding the space between slides?

I have a horizontal carousel.

It works fine when holding and swiping the slides, scrolling horizontally.

But when holding and swiping the space between slides, it scrolls vertically instead, which is wrong.

I am wondering how to solve that.

It seems that the spaces between the slides are considered outside the swiper, instead of a part of the swiper.

Here is my config for the swiper HTML element.

  private setSwiperConfig(): void {
    this.swiperConfig = {
      centeredSlides: false,
      spaceBetween: 24,
      slidesPerView: 'auto',
      grabCursor: true,
      allowTouchMove: true,
      shortSwipes: true,
      touchEventsTarget: 'wrapper',
      lazy: true,
      mousewheel: {
        forceToAxis: true
      },
      freeMode: true,
      speed: 500
    };
  }

Please help!

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda