Selaa lähdekoodia

forcegraph: tickevent is already in animation frame

Nils Schneider 9 vuotta sitten
vanhempi
commit
e36d3b1a6a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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() {