question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

modebar always visible in FF and IE

See original GitHub issue

only 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:closed
  • Created 6 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
alexcjohnsoncommented, Aug 7, 2017

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.

2reactions
rreussercommented, Jul 18, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found