X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fevent%2Fevents%2Ftap-gesture%2Ftap-gesture-recognizer.cpp;h=7d33bb4d8477433af7fe405b25bda8c019bd876c;hb=8672ce7601a6e0314451853742e68b65f7abd36f;hp=b1799c17cea0b04ce83c7eab1637043253eab20d;hpb=55550efaaf5ca2335a29a915eb441ad257a6dfba;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp index b1799c1..7d33bb4 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,8 @@ void TapGestureRecognizer::SendEvent(const Integration::TouchEvent& event) // This is a possible multiple tap, so has it been quick enough? uint32_t timeDelta = event.time - mLastTapTime; uint32_t deltaBetweenTouchDownTouchUp = event.time - mTouchTime; - if(timeDelta > mMaximumAllowedTime) // If exceeded time between taps then just a single tap + if(timeDelta > mMaximumAllowedTime || // If exceeded time between taps then just a single tap + mMaximumTapsRequired == 1u) // If MaximumTapsRequired is 1, it is not waiting for a multi-tap, so a Tap gesture send a single tap. { mLastTapTime = event.time; EmitSingleTap(event.time, point);