当使用Firefox放大或缩小时,cytoscape.js元素会消失 [英] cytoscape.js elements disappear when using Firefox to zoom in or out

查看:538
本文介绍了当使用Firefox放大或缩小时,cytoscape.js元素会消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 12.04上使用Firefox 24.0,我可以通过以下方式重现:

Using Firefox 24.0 on Ubuntu 12.04, I can reproduce this by:


  1. 转到 http://cytoscape.github.io/cytoscape.js/ 使用Firefox

  2. 使用Ctrl + +或Ctrl + - 放大或缩小

  3. 将鼠标移到拐角处的图表上并观察它消失。

  1. Going to http://cytoscape.github.io/cytoscape.js/ with Firefox
  2. Use Ctrl + + or Ctrl + - to zoom in or out
  3. Move the mouse over the graph in the corner and watch it disappear.

似乎在Chrome中正常工作。关于如何解决这个问题的任何想法?

Seems to work fine in Chrome. Any ideas on how to fix this?

推荐答案

我想我有一个解决方案。在Firefox中,如果按 ctrl-0 ,它会将缩放级别重置为默认值。这似乎解决了Firefox 24和25中的错误。如果然后按 Ctrl + - 放大或缩小,行为会返回。

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.

不是理想的行为,但这可能是Firefox错误或 cytoscape.js 错误。

Not ideal behavior, but this is probably either a Firefox bug or a cytoscape.js bug.

这篇关于当使用Firefox放大或缩小时,cytoscape.js元素会消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆