From: joogab.yun Date: Tue, 29 Apr 2025 08:53:10 +0000 (+0900) Subject: The tap gesture is not continuous. Since it is a gesture that occurs when up, CancelP... X-Git-Tag: dali_2.4.17~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ff6c498f140d9b73a5c6c6b5c81b091e3fe0d35;p=platform%2Fcore%2Fuifw%2Fdali-core.git The tap gesture is not continuous. Since it is a gesture that occurs when up, CancelProcessing is not needed. Change-Id: I6b16405f5b884999dabc5fc430fb93902bec8680 --- diff --git a/dali/internal/event/events/gesture-detector-impl.cpp b/dali/internal/event/events/gesture-detector-impl.cpp index 2d4807010..0bb704b69 100644 --- a/dali/internal/event/events/gesture-detector-impl.cpp +++ b/dali/internal/event/events/gesture-detector-impl.cpp @@ -81,6 +81,8 @@ GestureDetector::~GestureDetector() mGestureEventProcessor.RemoveGestureDetector(this); } } + + mGestureRecognizer = nullptr; } void GestureDetector::Attach(Actor& actor) @@ -338,7 +340,6 @@ void GestureDetector::SetDetected(bool detected) void GestureDetector::Clear() { - mGestureRecognizer = nullptr; mGestureEventProcessor.UnregisterGestureDetector(this); SetDetected(false); } diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp index 3a34a57d3..bff8e4947 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp @@ -283,10 +283,7 @@ bool TapGestureDetector::CheckGestureDetector(const GestureEvent* gestureEvent, void TapGestureDetector::CancelProcessing() { - if(mGestureRecognizer) - { - mGestureRecognizer->CancelEvent(); - } + // The tap gesture is not continuous. Since it is a gesture that occurs when up, CancelProcessing is not needed. } // This is an API that is called by FeedTouch and recognizes gestures directly from the Detector without going through the Reconizer.