File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,7 @@ function Scene(options, fullLayout) {
355
355
356
356
initializeGLPlot ( this , camera , this . pixelRatio ) ;
357
357
358
- // enable mouse listener which was disabled at camera init
359
- this . camera . mouseListener . enabled = true ;
358
+ this . enableGLCameraMouseListener ( ) ;
360
359
}
361
360
362
361
var proto = Scene . prototype ;
@@ -376,7 +375,14 @@ proto.initializeGLCamera = function() {
376
375
mode : 'orbit'
377
376
} ) ;
378
377
379
- // Note: we shoule disable camera interactions until the scene is complete
378
+ this . disableGLCameraMouseListener ( ) ;
379
+ } ;
380
+
381
+ proto . enableGLCameraMouseListener = function ( ) {
382
+ this . camera . mouseListener . enabled = true ;
383
+ } ;
384
+
385
+ proto . disableGLCameraMouseListener = function ( ) {
380
386
this . camera . mouseListener . enabled = false ;
381
387
} ;
382
388
You can’t perform that action at this time.
0 commit comments