Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!