projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve fast scrolling performance in ItemView
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
scroll-bar
/
scroll-bar-impl.h
diff --git
a/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h
b/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h
index
c938c7e
..
909e4fe
100755
(executable)
--- a/
dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h
+++ b/
dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h
@@
-141,6
+141,12
@@
private:
*/
void OnScrollPositionNotified(PropertyNotification& source);
*/
void OnScrollPositionNotified(PropertyNotification& source);
+ /**
+ * Process the pan gesture per predefined timeout until the gesture is finished.
+ * @return True if the timer should be kept running.
+ */
+ bool OnPanGestureProcessTick();
+
private:
Constrainable mScrollPositionObject; ///< From mScrollConnector
private:
Constrainable mScrollPositionObject; ///< From mScrollConnector
@@
-149,9
+155,14
@@
private:
ImageActor mIndicator; ///< Image of scroll indicator.
Animation mAnimation; ///< Scroll indicator Show/Hide Animation.
ImageActor mIndicator; ///< Image of scroll indicator.
Animation mAnimation; ///< Scroll indicator Show/Hide Animation.
- float mScrollStart;
///< Scroll Start position (start of drag)
+ float mScrollStart; ///< Scroll Start position (start of drag)
Vector3 mGestureDisplacement; ///< Gesture Displacement.
Vector3 mGestureDisplacement; ///< Gesture Displacement.
+ bool mIsPanning; ///< Whether the scroll bar is being panned.
+ float mCurrentScrollPosition; ///< The current scroll position updated by the pan gesture
+
+ Timer mTimer; ///< The timer to process the pan gesture after the gesture is started.
+
Property::Index mPropertyIndicatorPosition; ///< Indicatore Position ("indicator-position")
PropertyNotification mPositionNotification; ///< Stores the property notification used for scroll position changes
Property::Index mPropertyIndicatorPosition; ///< Indicatore Position ("indicator-position")
PropertyNotification mPositionNotification; ///< Stores the property notification used for scroll position changes