Plotly_click and event in firefox


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.


I solved it.

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