{"action":"created","issue":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/178","repository_url":"https://api.github.com/repos/greensock/GreenSock-JS","labels_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/178/comments","events_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/178/events","html_url":"https://github.com/greensock/GreenSock-JS/issues/178","id":191978928,"number":178,"title":"possible time leack","user":{"login":"lucap86","id":15343100,"avatar_url":"https://avatars.githubusercontent.com/u/15343100?v=3","gravatar_id":"","url":"https://api.github.com/users/lucap86","html_url":"https://github.com/lucap86","followers_url":"https://api.github.com/users/lucap86/followers","following_url":"https://api.github.com/users/lucap86/following{/other_user}","gists_url":"https://api.github.com/users/lucap86/gists{/gist_id}","starred_url":"https://api.github.com/users/lucap86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucap86/subscriptions","organizations_url":"https://api.github.com/users/lucap86/orgs","repos_url":"https://api.github.com/users/lucap86/repos","events_url":"https://api.github.com/users/lucap86/events{/privacy}","received_events_url":"https://api.github.com/users/lucap86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-28T11:13:01Z","updated_at":"2016-12-14T08:43:48Z","closed_at":null,"body":"Is this a bug? \r\n\r\n*Not paused*\r\n```\r\nz = new TimelineLite({paused:true, onComplete: function(){console.log(\"Z completed\");}});\r\nz.clear()\r\nk = new TimelineLite();\r\nk.clear()\r\nk.call(function(){debugger;z.pause(null, false);});\r\nk.call(function(){debugger;console.log(\"foo\");}, null, window, \"+=0.001\");\r\nz.add(k);\r\nz.play();\r\n```\r\n\r\n\r\n*Not paused*\r\n```\r\nz = new TimelineLite({paused:true, onComplete: function(){console.log(\"Z completed\");}});\r\nz.clear()\r\nk = new TimelineLite();\r\nk.clear()\r\nk.call(function(){debugger;z.pause(null, false);});\r\nk.call(function(){debugger;console.log(\"foo\");}, null, window, \"+=0.01\");\r\nz.add(k);\r\nz.play();\r\n```\r\n\r\n\r\n*Paused*\r\n```\r\nz = new TimelineLite({paused:true, onComplete: function(){console.log(\"Z completed\");}});\r\nz.clear()\r\nk = new TimelineLite();\r\nk.clear()\r\nk.call(function(){debugger;z.pause(null, false);});\r\nk.call(function(){debugger;console.log(\"foo\");}, null, window, \"+=0.1\");\r\nz.add(k);\r\nz.play();\r\n```\r\n\r\ni think that the issue involve computation of renderer's time param\r\nz.time()  on debugger breakpoint is very close to 0 (≈0.0160...) but not 0."},"comment":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/comments/266976152","html_url":"https://github.com/greensock/GreenSock-JS/issues/178#issuecomment-266976152","issue_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/178","id":266976152,"user":{"login":"lucap86","id":15343100,"avatar_url":"https://avatars.githubusercontent.com/u/15343100?v=3","gravatar_id":"","url":"https://api.github.com/users/lucap86","html_url":"https://github.com/lucap86","followers_url":"https://api.github.com/users/lucap86/followers","following_url":"https://api.github.com/users/lucap86/following{/other_user}","gists_url":"https://api.github.com/users/lucap86/gists{/gist_id}","starred_url":"https://api.github.com/users/lucap86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucap86/subscriptions","organizations_url":"https://api.github.com/users/lucap86/orgs","repos_url":"https://api.github.com/users/lucap86/repos","events_url":"https://api.github.com/users/lucap86/events{/privacy}","received_events_url":"https://api.github.com/users/lucap86/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T08:43:48Z","updated_at":"2016-12-14T08:43:48Z","body":"yes that work and stop parent at child startTime.\r\nbut more in general:\r\n\r\n```\r\nk.call(function(){\r\n    ... some code;\r\n    z.pause(this.time());\r\n    ... some code;\r\n});\r\n```\r\nwill pause parent at the current playhead position.\r\n\r\nThe question is:\r\nShould the runtime do this automatically when I call pause without \"atTime\" parameter?\r\n\r\ndocumentation says:\r\n\r\natTime : *\r\n(default = null) — The time (or label for TimelineLite/TimelineMax instances) that the instance should jump to before pausing (if none is defined, it will pause wherever the playhead is currently located).\r\n"}}
{"actor":{"display_login":"lucap86"}}