{"action":"opened","issue":{"url":"https://api.github.com/repos/d3/d3-timer/issues/17","repository_url":"https://api.github.com/repos/d3/d3-timer","labels_url":"https://api.github.com/repos/d3/d3-timer/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3-timer/issues/17/comments","events_url":"https://api.github.com/repos/d3/d3-timer/issues/17/events","html_url":"https://github.com/d3/d3-timer/issues/17","id":184722049,"number":17,"title":"In wake() function, when time flush is called \"clock now\" variable is calculated wrongly.","user":{"login":"dhandaweb","id":7087296,"avatar_url":"https://avatars.githubusercontent.com/u/7087296?v=3","gravatar_id":"","url":"https://api.github.com/users/dhandaweb","html_url":"https://github.com/dhandaweb","followers_url":"https://api.github.com/users/dhandaweb/followers","following_url":"https://api.github.com/users/dhandaweb/following{/other_user}","gists_url":"https://api.github.com/users/dhandaweb/gists{/gist_id}","starred_url":"https://api.github.com/users/dhandaweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhandaweb/subscriptions","organizations_url":"https://api.github.com/users/dhandaweb/orgs","repos_url":"https://api.github.com/users/dhandaweb/repos","events_url":"https://api.github.com/users/dhandaweb/events{/privacy}","received_events_url":"https://api.github.com/users/dhandaweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-23T22:58:47Z","updated_at":"2016-10-23T22:58:47Z","closed_at":null,"body":"Issue is:\r\n\r\nOpen a html page with d3 transition in browser. \r\nNavigate away from page before transition happen. \r\nSay away until file is loaded. \r\nCome back and you will find the transition will take 10-20 sec to start giving impression that chart is broken. \r\n\r\nI found the bug in timeflush() function which is not calculating the right clocknow variable.\r\n\r\n  function timerFlush() {\r\n    now(); // Get the current time, if not already set.\r\n    ++frame; // Pretend we’ve set an alarm, if we haven’t already.\r\n    var t = taskHead, e;\r\n    while (t) {\r\n      if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\r\n      t = t._next;\r\n    }\r\n    --frame;\r\n  }\r\n\r\nclocknow should be positive when tab wake up but its not causing next transition call to stop. \r\n\r\nPlease suggest."}}
{"actor":{"display_login":"dhandaweb"}}