{"action":"opened","issue":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1993","repository_url":"https://api.github.com/repos/codenameone/CodenameOne","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1993/labels{/name}","comments_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1993/comments","events_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1993/events","html_url":"https://github.com/codenameone/CodenameOne/issues/1993","id":197351202,"number":1993,"title":"com.codename1.ui.AnimationManager.isAnimating() returns false but MorphAnimation is still \"active\"","user":{"login":"saeder","id":9945131,"avatar_url":"https://avatars.githubusercontent.com/u/9945131?v=3","gravatar_id":"","url":"https://api.github.com/users/saeder","html_url":"https://github.com/saeder","followers_url":"https://api.github.com/users/saeder/followers","following_url":"https://api.github.com/users/saeder/following{/other_user}","gists_url":"https://api.github.com/users/saeder/gists{/gist_id}","starred_url":"https://api.github.com/users/saeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeder/subscriptions","organizations_url":"https://api.github.com/users/saeder/orgs","repos_url":"https://api.github.com/users/saeder/repos","events_url":"https://api.github.com/users/saeder/events{/privacy}","received_events_url":"https://api.github.com/users/saeder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T11:05:01Z","updated_at":"2016-12-23T11:05:01Z","closed_at":null,"body":"`com.codename1.ui.Container.MorphAnimation.updateState()` keeps getting called even if MorphAnimation.finished is true. That is because `com.codename1.ui.AnimationManager.updateAnimations()` calls it when `com.codename1.ui.animations.ComponentAnimation.isInProgress(‌​)` returns true AND when it returns false. \r\n\r\nTherefore one cannot assume that no animation is going on when `com.codename1.ui.AnimationManager.isAnimating()` returns false. This may cause jumpy animations.\r\n\r\nI suggest that animations having `finished=true` do not change anything. There may, however, be a reason for calling `com.codename1.ui.Container.MorphAnimation.updateState()` regardless of whether `com.codename1.ui.animations.ComponentAnimation.isInProgress(‌​)` returns true or false in `com.codename1.ui.AnimationManager.updateAnimations()`, which I don't know.\r\n\r\nI also suggest that if `com.codename1.ui.AnimationManager.isAnimating()` returns `false` one should be able to safely assume that no animation is active anymore."}}
{"actor":{"display_login":"saeder"}}