[4.0] Bug fix at PlayAfter 38/158938/1
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 26 Oct 2017 17:20:02 +0000 (02:20 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 6 Nov 2017 05:01:53 +0000 (14:01 +0900)
commite64c3989f06c5968cbc48ace0f691d8978f83c5b
treec757e801598dcf341bf5b41907cb70a2eaf65243
parent959b21cb9dd930eaddd4942f66753751b38aea82
[4.0] 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