ScrollView - Second part of overshoot fix, overshoot will now only animate if pre... 60/24160/1
authorJulien Heanley <j.heanley@partner.samsung.com>
Thu, 12 Jun 2014 10:13:08 +0000 (11:13 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:01 +0000 (18:47 +0100)
commit44020c96e86a466383d70f05e5bdacb3d409e3d6
treebb92db288b7744bdf9c3d31ab6a1c4f2b90330c0
parent33e1324f5027b567ff9da9bbd7c172b35f1eba03
ScrollView - Second part of overshoot fix, overshoot will now only animate if pre scroll and post scroll values are different, preventing updating when not needed and saving power

[problem]      If wrapping is on, the overshoot animation would still be animated for 0.35s
[cause]        Values used to compare were at opposite ends of scroll view due to wrapping
[solution]     Wrap the correct value back round so in wrapping mode they were both the same, in this case Snapping overshoot is avoided

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