I need to listen to mousedown events (not a full click) on the y-axis and perhaps the main plot area, but my events only trigger on the margins. How can I do this without killing the default Plotly interactions? In particular, can I detect mousedown on the y-axis but still keep the possibility of zooming by dragging the y-axis?
I should point to this related post, but it just confused me even more. (It made me think that mouseup needed to be put on
document, but it works on the plot margins for me.)
I prepared a Codepen to play with.