Skip to content

Commit 724416b

Browse files
committed
fixes for jasmine test
1 parent 899b568 commit 724416b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/gl3d/layout/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function handleGl3dDefaults(sceneLayoutIn, sceneLayoutOut, coerce, opts) {
101101
sceneLayoutIn.dragmode = 'turntable';
102102
}
103103

104-
if(!sceneLayoutIn.dragmode) {
104+
if(sceneLayoutIn.dragmode !== undefined) {
105105
// Because the default is now set to orbit mode
106106
// (i.e. in order to apply camera.z.up at init time)
107107
// we set turnable our disarable option here.

test/jasmine/tests/gl3d_plot_interact_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ describe('Test gl3d plots', function() {
394394

395395
it('@gl should be able to reversibly change trace type', function(done) {
396396
var _mock = Lib.extendDeep({}, mock2);
397-
var sceneLayout = { aspectratio: { x: 1, y: 1, z: 1 } };
397+
var sceneLayout = { aspectratio: { x: 1, y: 1, z: 1 }, dragmode: 'turntable' };
398398

399399
Plotly.plot(gd, _mock)
400400
.then(delay(20))

0 commit comments

Comments
 (0)