'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.
Therefore, if you put pointer-events: none on the parent element, you can see that the slider is operating normally.
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.
- I wonder why the slider works strangely when I don't do
pointer-events: none. - I wonder how the child elements can operate the click event with
pointer-events: noneon.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


