浏览代码

forcegraph: tickevent is already in animation frame

Nils Schneider 9 年之前
父节点
当前提交
e36d3b1a6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/forcegraph.js

+ 1 - 1
lib/forcegraph.js

@@ -383,7 +383,7 @@ define(["d3"], function (d3) {
     }
 
     function tickEvent() {
-      requestAnimationFrame(redraw)
+      redraw()
     }
 
     function resizeCanvas() {