✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

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?

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