Kaynağa Gözat

forcegraph: tickevent is already in animation frame

Nils Schneider 9 yıl önce
ebeveyn
işleme
e36d3b1a6a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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() {