✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Plotly_click and event in firefox

Hello,

I’m having problems with firefox. When you click in a point it gets the event.x and event.y from chrome to place a custom menu there, but this is not happening when i use firefox.

If i get the data.x and data.y from the plotly_click returned object it is relative to the layout not to the document.

I tried this:

event = event || window.event;

but still not working.

Ok,

I solved it.

The solucion was to add the plot data.event.clientY to the window.pageYOffset