Bug fix at PlayAfter 86/157886/11
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 26 Oct 2017 17:20:02 +0000 (02:20 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Fri, 3 Nov 2017 04:33:52 +0000 (13:33 +0900)
commit48ae43b251e42831b67096a919708daa7588d44e
tree07e932dd3699b05966550713055ceefb5be03a15
parent4581860eac334340242f9a208ea85eb8c7e9bb9a
Bug fix at PlayAfter

Fix two major bugs

1) when elapsed time is bigger then remain delaytime.

 For example, when elapsed time is 0.016s and delaytime is 0.001s.
 Previous version just delete 0.001s, and do nothing
  --> Information of 0.015 seconds is missed

2) when speedfactor is negative.

 Previous version do something like, remain_delay -= elapstime * speedfactor;
 In this case, if speed factor is negative, remain_delay time will increase
 so unlimited loop was occured in this case

Change-Id: Ib59a276a14a513fd34b458156cb29a0250c8cc70
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali/utc-Dali-Animation.cpp
dali/internal/update/animation/scene-graph-animation.cpp