3D surface plot "plotly_click" event fired on drag before mouse button is released

I’m trying to window.open on a click on a point in a 3D surface plot. This causes the camera to move randomly if any hint of drag occurs with the click. It seems as if “plotly_click” is fired on mouse down then the window loses focus and plotly thinks it’s in a drag event and goes haywire. https://codepen.io/APRRT/pen/YzNvVvW illustrates the issue if you drag a bit as you click. How can I get a plotly_click on mouse up and prevent any dragging issues here?

1 Like

You can see “plotly_click” is also fired multiple times.