Prevent fighting of setting scroll position property by ItemView and ScrollBar 90/24190/1
authorRichard Huang <r.huang@samsung.com>
Wed, 25 Jun 2014 17:33:38 +0000 (18:33 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:49 +0000 (18:47 +0100)
commitd2c0a6de37f0166a6a4a9bd1b1017ffcc8f545cc
tree16393341404beaad01e45d562427eda02c53645f
parent76f686a80ee0cc22b82d4043ebe3f9bf2368aa94
Prevent fighting of setting scroll position property by ItemView and ScrollBar

[problem]      When ItemView is still scrolling, touch and drag the fast scroll bar,
               the fast scroll bar is not responsive for some time and ItemView scrolls
               to the wrong position sometimes.
[cause]        When scroll position property is being animated by ItemView, if something
               else (e.g. ScrollBar) tries to modify the scroll position property at the
               same time, there is a fighting of setting the same property between the two.
[solution]     Cancel scroll animation when it is in fast scroll mode.

Change-Id: I3de03d7b21b929fe527b907e58464896b774c489
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
base/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp
base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp
base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.h
base/dali-toolkit/internal/controls/scrollable/scroll-connector-impl.cpp
base/dali-toolkit/internal/controls/scrollable/scroll-connector-impl.h
base/dali-toolkit/public-api/controls/scrollable/scroll-connector.cpp
capi/dali-toolkit/public-api/controls/scrollable/scroll-connector.h