(ScrollView) Panning is disabled if ScrollTo is called while panning 74/24174/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 19 Jun 2014 13:36:27 +0000 (22:36 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:13 +0000 (18:47 +0100)
commitf6be8012c03a25aca4a8403e4a0da31854a2ef69
tree85723fac8b3567ebe8748af568d446be57a3f32a
parenta2fe5fdd2e89bb241f8c2e716f762bae368519b7
(ScrollView) Panning is disabled if ScrollTo is called while panning

[problem]     If application calls ScrollTo while we're panning we go into an incorrect state.
[cause]       When we're panning, and the application calls ScrollTo, swiftly followed by a call
              to disable scroll-sensitivity, the panning value is never cleared.
              When scroll-sensitivity is enabled, we start animating to a wrong position.
              Also trying to use the property value when we set sensitivity which can be out-of-date.
[solution]    Clear the panning value when we want to animate to another position.
              Use event-side panning value when changing scroll-sensitivity.

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