问题
Using Firefox 24.0 on Ubuntu 12.04, I can reproduce this by:
- Going to http://cytoscape.github.io/cytoscape.js/ with Firefox
- Use Ctrl + + or Ctrl + - to zoom in or out
- Move the mouse over the graph in the corner and watch it disappear.
Seems to work fine in Chrome. Any ideas on how to fix this?
回答1:
The same version of Firefox on Mac does not have this issue, leading me to believe this is a Firefox problem or an Ubuntu problem. If I were you, I would file a bug report with Mozilla: https://bugzilla.mozilla.org
They can investigate whether this is an issue on their end or whether this is an issue on the Ubuntu end. -M
回答2:
I think I have a solution. In Firefox if you press ctrl-0, it will reset your zoom level to default. This appears to solve the bug in Firefox 24 and 25. If you then press Ctrl and + or - to zoom in or out, the disappearing behavior will return. You can resolve again by resetting to default zoom level.
Not ideal behavior, but this is probably either a Firefox bug or a cytoscape.js
bug.
来源:https://stackoverflow.com/questions/18992398/cytoscape-js-elements-disappear-when-using-firefox-to-zoom-in-or-out