From 9317346dfe1ca8b7da47f6690b5ccf999ca45e4a Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 16 Apr 2015 21:01:46 +0200 Subject: [PATCH] forcegraph: partially revert framerate limiting --- lib/forcegraph.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 506b0b1..b525009 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -236,18 +236,7 @@ define(["d3"], function (d3) { d.y + margin > screenRect.top && d.y - margin < screenRect.bottom } - var oldTime = 0 - - function redraw(time) { - var deltaTime = time - oldTime - - if (deltaTime < 20) { - requestAnimationFrame(redraw) - return - } - - oldTime = time - + function redraw() { var translate = zoomBehavior.translate() var scale = zoomBehavior.scale() var links = intLinks.filter(visibleLinks)