Fix PanGestureDetector issue 49/176749/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 23 Apr 2018 07:04:29 +0000 (16:04 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 23 Apr 2018 07:14:58 +0000 (16:14 +0900)
- If the number of minimum touch is more than two, PanGestureDetector::DetectedSignal is
  not emitted because 'mState' of PanGestureDetector could not update from Clear to other states.

- When the detector state is Clear and the primary point state is stationary,
  the detector state should update Possible and Send Pan event.

Change-Id: I579868197a7707c9af01f54368a68bd2c842afbb
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/internal/input/common/pan-gesture-detector-base.cpp

index 4f7edc7..cef2a34 100644 (file)
@@ -105,7 +105,7 @@ void PanGestureDetectorBase::SendEvent(const Integration::TouchEvent& event)
     {
       case Clear:
       {
-        if (primaryPointState == PointState::DOWN)
+        if ( ( primaryPointState == PointState::DOWN ) || ( primaryPointState == PointState::STATIONARY ) )
         {
           mPrimaryTouchDownLocation = event.points[0].GetScreenPosition();
           mPrimaryTouchDownTime = event.time;