ScrollView - Store properties in local values for GetCurrentScrollPosition 61/24161/1
authorJulien Heanley <j.heanley@partner.samsung.com>
Thu, 12 Jun 2014 10:43:42 +0000 (11:43 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:02 +0000 (18:47 +0100)
commitabfd989dd30ab045376e0fbb35f61d7c9bba450c
tree2121c0f0baa6782ec6339858028774da213292ec
parent44020c96e86a466383d70f05e5bdacb3d409e3d6
ScrollView - Store properties in local values for GetCurrentScrollPosition

[problem]      If application performs more than one ScrollTo operation with the first having duration of 0 seconds, the second ScrollTo could have wrapping issues
[cause]        Internally scroll view uses current scroll position from property to check wrapping and perform correct animation, in case where this is done twice before an update the property may be incorrect for the second ScrollTo
[solution]     Store result of first ScrollTo if it is set immediately due to 0 second duration and use that value for next ScrollTo calculations

Change-Id: I5230e00140c3cb75df8b14fc5e9227c16928406f
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
base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h
base/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.cpp