Skip to content

Commit e467c88

Browse files
committed
#30a saving the camera position on the DIV layout when the projection has changed, in sync with the plotly_relayout event
1 parent 19c478d commit e467c88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/gl3d/scene.js

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ function initializeGLPlot(scene, fullLayout, canvas, gl) {
174174
var relayoutCallback = function(scene) {
175175
var update = {};
176176
update[scene.id] = getLayoutCamera(scene.camera);
177+
scene.saveCamera(scene.graphDiv.layout);
177178
scene.graphDiv.emit('plotly_relayout', update);
178179
};
179180

0 commit comments

Comments
 (0)