{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/15321","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/15321/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/15321/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/15321/events","html_url":"https://github.com/ampproject/amphtml/pull/15321","id":323373564,"number":15321,"title":"🐛 amp-bodymovin-animation: Fix the logic for setting the percentage in `seekTo`","user":{"login":"jessepinho","id":1121544,"avatar_url":"https://avatars0.githubusercontent.com/u/1121544?v=4","gravatar_id":"","url":"https://api.github.com/users/jessepinho","html_url":"https://github.com/jessepinho","followers_url":"https://api.github.com/users/jessepinho/followers","following_url":"https://api.github.com/users/jessepinho/following{/other_user}","gists_url":"https://api.github.com/users/jessepinho/gists{/gist_id}","starred_url":"https://api.github.com/users/jessepinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessepinho/subscriptions","organizations_url":"https://api.github.com/users/jessepinho/orgs","repos_url":"https://api.github.com/users/jessepinho/repos","events_url":"https://api.github.com/users/jessepinho/events{/privacy}","received_events_url":"https://api.github.com/users/jessepinho/received_events","type":"User","site_admin":false},"labels":[{"id":596638238,"url":"https://api.github.com/repos/ampproject/amphtml/labels/cla:%20no","name":"cla: no","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-15T20:36:22Z","updated_at":"2018-05-15T20:39:12Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/15321","html_url":"https://github.com/ampproject/amphtml/pull/15321","diff_url":"https://github.com/ampproject/amphtml/pull/15321.diff","patch_url":"https://github.com/ampproject/amphtml/pull/15321.patch"},"body":"Currently, the `seekTo` action seeks to a percentage. However, Lottie doesn't handle percentages; it can either handle frame numbers or timestamps. (You can see that in [their documentation for `goToAndStop()`](https://github.com/airbnb/lottie-web#gotoandstopvalue-isframe), which is used by `seekTo`.)\r\n\r\nThis PR multiplies the percentage by the total number of frames in the animation to get the correct frame number."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/389305553","html_url":"https://github.com/ampproject/amphtml/pull/15321#issuecomment-389305553","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/15321","id":389305553,"user":{"login":"jessepinho","id":1121544,"avatar_url":"https://avatars0.githubusercontent.com/u/1121544?v=4","gravatar_id":"","url":"https://api.github.com/users/jessepinho","html_url":"https://github.com/jessepinho","followers_url":"https://api.github.com/users/jessepinho/followers","following_url":"https://api.github.com/users/jessepinho/following{/other_user}","gists_url":"https://api.github.com/users/jessepinho/gists{/gist_id}","starred_url":"https://api.github.com/users/jessepinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessepinho/subscriptions","organizations_url":"https://api.github.com/users/jessepinho/orgs","repos_url":"https://api.github.com/users/jessepinho/repos","events_url":"https://api.github.com/users/jessepinho/events{/privacy}","received_events_url":"https://api.github.com/users/jessepinho/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T20:39:12Z","updated_at":"2018-05-15T20:39:12Z","author_association":"NONE","body":"I signed it!"}}
{"actor":{"display_login":"jessepinho"}}