[Tizen] Fixed an issue the triple tap did not work. 76/267476/1
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 18 May 2021 10:04:13 +0000 (19:04 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Mon, 6 Dec 2021 05:17:30 +0000 (14:17 +0900)
commit78371074613b44c6cd3cd5ba03ad48b016601a6b
treef86d97c930ade7bfeeda86e5995eef89c2f70251
parentf2a7ad48f34809bfd73e9de833fdadba8ed0826a
[Tizen] Fixed an issue the triple tap did not work.

The mState value is wrong.
So, only single and double taps are possible,
and no more taps are called.

And it removes unreachable code.

   uint32_t deltaBetweenTouchDownTouchUp = event.time - mTouchTime;

   if(deltaBetweenTouchDownTouchUp < MAXIMUM_TIME_ALLOWED)
   {
     // mLastTapTime is equal to or greater than mTouchTime;
     // so If deltaBetweenTouchDownTouchUp is less than MAXIMUM_TIME_ALLOWED
     // then timeDelta is never it cannot be greater than MAXIMUM_TIME_ALLOWED.

     uint32_t timeDelta = event.time - mLastTapTime;
     if(timeDelta > MAXIMUM_TIME_ALLOWED)
     {
       // unreachable block
     }
   }

Change-Id: Icd719bda146a82f0b25cb123e36395c9b5aa8f5f
automated-tests/src/dali/utc-Dali-TapGestureRecognizer.cpp
dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp