plotly.js
plotly.js copied to clipboard
3d camera reset after react
This one has a very specific replication path from this pen: https://codepen.io/nicolaskruchten/pen/NWxoWGR?editors=0010
- newPlot@0
- react@1 (this is the critical step to get the figure into the broken state)
- do turntable interaction via drag
- click on "zoom" modebar icon: the turntable interaction is undone!
Alternate path:
- newPlot@0
- react@1 (this is the critical step to get the figure into the broken state)
- click on "zoom" modebar icon and zoom a bit via drag
- click on "turntable" modebar icon: the zoom interaction is undone!
Related to https://github.com/plotly/plotly.js/issues/5004 ? same pen... with uirevision set.
This one is a regression since v1.51.0 and the side effect of #4292.
Even in 1.50.0 it doesn't behave particularly well... it's easy to get into situations where clicking among the modebar buttons changes the zoom level.
Even in 1.50.0 it doesn't behave particularly well... it's easy to get into situations where clicking among the modebar buttons changes the zoom level.
@nicolaskruchten thanks for investigating that using v1.50.0. Concerning replicating the original issue, would you please keep the version in the original pen at 1.54.6? Thank you.
Sorry, I didn't fork! I've pinned the pen to -latest
this seems to be the case even switching from zoom to pan and back
Seems related to undefined initial camera position.
This is very strange bug. The fix works in the dashboard but not in a codepen!