X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-impl.h;h=8f2be58455bbc4496eb63cf3ccb3d9ae9cfcf391;hp=4c3dc8eba98be766e7a473845333d9082eaf4787;hb=45e0dfb55809cde34b3913b0b16f18e79c14775c;hpb=f4d5b3ffc194fc1b1c14f4a79e3efa435a31bc32 diff --git a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h index 4c3dc8e..8f2be58 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h +++ b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h @@ -556,6 +556,21 @@ private: // private overriden functions from CustomActorImpl and Controls private: /** + * Start a timer which calls OnTouchDownTimeout() + */ + void StartTouchDownTimer(); + + /** + * Stop a timer which calls OnTouchDownTimeout() + */ + void StopTouchDownTimer(); + + /** + * Helper to detect when touch-point has been down (outside of pan gesture) + */ + bool OnTouchDownTimeout(); + + /** * Called whenever a snap animation has completed * @param[in] source the Animation instance that has completed. */ @@ -806,7 +821,6 @@ private: bool mScrolling; ///< Flag indicating whether the scroll view is being scrolled (by user or animation) bool mScrollInterrupted; ///< Flag set for when a down event interrupts a scroll unsigned long mTouchDownTime; ///< The touch down time - Vector2 mTouchDownPosition; ///< The touch down position bool mSensitive; ///< Scroll Sensitivity Flag. @@ -834,7 +848,7 @@ private: RulerPtr mRulerScaleX; RulerPtr mRulerScaleY; RulerPtr mRulerRotation; - bool mTouchDownReceived; + bool mTouchDownTimeoutReached; bool mActorAutoSnapEnabled; ///< Whether to automatically snap to closest actor. bool mAutoResizeContainerEnabled; ///< Whether to automatically resize container (affects RulerDomain's on X/Y axes) bool mWrapMode; ///< Whether to wrap contents based on container size. @@ -851,6 +865,7 @@ private: Vector2 mLastVelocity; ///< Record the last velocity from PanGesture (Finish event doesn't have correct velocity) LockAxis mLockAxis; + Timer mTouchDownTimer; ///< Used to interrupt snap-animation. This cannot be done in OnTouchEvent without breaking fast flick behavior. Timer mOvershootRefreshTimer; Timer mRefreshTimer; ///< Refresh timer is used to provide the Application developer with updates as animations run. int mRefreshIntervalMilliseconds; ///< Refresh timer interval.