How to set the aspect ratio equal without constraining the zoom box

Is it possible to set the aspect ratio equal without constraining the zoom box?

The example below fixes the aspect ratio of the zoom box, but I don’t want that.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online