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

212
Vistas
I wonder how to activate the click event of an element in the slider in the state of 'pointer-event: none.'

I'm making a slider with JavaScript.

When implementing a slider, if you do not do pointer-events:none, the slider does not operate normally as follows.

enter image description here

Therefore, if you put pointer-events: none on the parent element, you can see that the slider is operating normally.

enter image description here

I want to make it possible to click on the elements in the slider.

However, if you do pointer-events: none in the parent element, it will not work even if you register a click event.

What I'm curious about is as follows.

  1. I wonder why the slider works strangely when I don't do pointer-events: none.
  2. I wonder how the child elements can operate the click event with pointer-events: none on.

Here is my code (code sandbox)

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