File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 83
83
"gl-shader" : " 4.2.0" ,
84
84
"gl-spikes2d" : " ^1.0.1" ,
85
85
"gl-surface3d" : " ^1.3.0" ,
86
+ "has-hover" : " ^1.0.0" ,
86
87
"mapbox-gl" : " ^0.22.0" ,
87
88
"matrix-camera-controller" : " ^2.1.3" ,
88
89
"mouse-change" : " ^1.4.0" ,
Original file line number Diff line number Diff line change 12
12
13
13
var d3 = require ( 'd3' ) ;
14
14
var isNumeric = require ( 'fast-isnumeric' ) ;
15
+ var hasHover = require ( 'has-hover' ) ;
15
16
16
17
var Plotly = require ( '../plotly' ) ;
17
18
var Lib = require ( '../lib' ) ;
@@ -423,6 +424,11 @@ function setPlotContext(gd, config) {
423
424
context . showLink = false ;
424
425
context . displayModeBar = false ;
425
426
}
427
+
428
+ // make sure hover-only devices have mode bar visible
429
+ if ( context . displayModeBar === 'hover' && ! hasHover ) {
430
+ context . displayModeBar = true ;
431
+ }
426
432
}
427
433
428
434
function plotPolar ( gd , data , layout ) {
You can’t perform that action at this time.
0 commit comments