(ScrollView) If animation duration is 0, then return final position in completed... 72/24172/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 18 Jun 2014 10:12:53 +0000 (19:12 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:11 +0000 (18:47 +0100)
commit2e26071bb888787156a04736b4118ea552cbe415
treef76c38a4f846b13b2ad6a1feb452e51c490793cd
parent8f1d77887f6584b9cf2804b0b56ae808028e1bbb
(ScrollView) If animation duration is 0, then return final position in completed signal

[problem]     If the animation duration is 0, we still return the current scroll position. This is
              wrong as in the next frame, we will be at the requested position.
[cause]       N/A
[solution]    If we do not kick off an animation, then we should check whether the duration was 0.
              If it was, we should return the target-position instead.

Change-Id: I3e1a96b3de7ca2685a16f6dd6b8ce5aebc1c78af
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp