Plotly_click does not emit if pointer-events all set

So, I want the details of a point on click, like the trace index and point index. Though ‘plotly_click’ does emit those data on click but I have few problems

  1. I need pointer-events: all (for some purpose) on the points, and the the plotly_click doesn’t get fired.
  2. plotly_click only emit after mouseup and I need that data on mousedown

Is there any way to solve this problem?