modebar always visible in FF and IE
See original GitHub issueonly in Chrome does the modebar hide when you mouse away, as it should - in FF and IE it’s always present. Looks like that’s because has-hover
doesn’t work correctly in those browsers (both of its matchMedia(...).matches
calls return false
there).
cc @dfcreative
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (10 by maintainers)
Top Results From Across the Web
Configuration options in JavaScript - Plotly
By default, the modebar is only visible while the user is hovering over the chart. If you would like the modebar to always...
Read more >plotly.js-geo-dist-min | Yarn - Package Manager
Display hover labels above modebar, ensuring that the hover labels are always visible within the graph div [#3589, #3678] ...
Read more >PlotlyJS plot configuration settings in VSCode - Julia Discourse
In VSCode, the configuration settings always seem to be overwritten. ... it always appears with the same configuration (i.e. ModeBar pops up ...
Read more >How to display Plot.ly Modebar Icons in a horizontal Row
I added a simple plotly chart to my Wordpress website, and the modebar (i.e. the icon toolbox) is displayed as a block on...
Read more >Plotly modebar options
By default, the modebar is only visible while the user is hovering over the ... modebar hide when you mouse away, as it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think @rreusser is right to point to discoverability in touch environments. Seems like in general then we should leave it as is. I guess if anyone feels strongly that they’d STILL like the modebar hidden until you tap the plot, we could add a config option like
displayModeBar: 'hover-touch'
but I’ll wait until this idea gets a few 👍 's before doing that.Testing the negation, i.e.
!window.matchMedia('(hover: none)').matches
seems like it might be more reliable. Works in firefox, chrome, safari, and the iOS simulator for me.