Is it possible to capture the onClick event in a div but ignore any other behavior as pointer-events is set as none?
I have two divs, the background and a kind of a button overlaying this background. I'm capturing a drag event in the background and I need to capture this drag event also if start on the button. I can achieve this just setting my button as pointer-events:none
but then I can't capture the onClick on it.
In other words, I have to replicate the behavior of pointer-events:none
in JavaScript.