Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plots/gl3d/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function initializeGLPlot(scene, fullLayout, canvas, gl) {
if(scene.fullSceneLayout.dragmode === false) return;

var update = {};
update[scene.id] = getLayoutCamera(scene.camera);
update[scene.id + '.camera'] = getLayoutCamera(scene.camera);
scene.saveCamera(scene.graphDiv.layout);
scene.graphDiv.emit('plotly_relayout', update);
};
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/gl_plot_interact_basic_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function verifyInteractionEffects(tuple) {
expect(tuple.relayoutCallback).toHaveBeenCalledTimes(1);

// Check structure of event callback value contents
expect(tuple.relayoutCallback).toHaveBeenCalledWith(jasmine.objectContaining({scene: cameraStructure}));
expect(tuple.relayoutCallback).toHaveBeenCalledWith(jasmine.objectContaining({'scene.camera': cameraStructure}));

// Check camera contents on the DIV layout
var divCamera = tuple.graphDiv.layout.scene.camera;
Expand Down