So, I’d like to do event handling with the same coordinate calculation as other plotly_click or plitly_hover.
In the event of click, you want to firing an event and get coordinates without spike. And in a form corresponding to zoom.
What I’m thinking now,
Hacking click.js event
However, although I want to take a value of this _hoverevent format, a problem occurred because _hoverevent did not come out when I did not hover.
Hmm. I’m not 100% sure what you’re looking to do during drag motion, but it might be easier to use dragmode: 'select' and listen to the plotly_selected handler instead.