The tap gesture is not continuous. Since it is a gesture that occurs when up, CancelP... 95/323495/1
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 29 Apr 2025 08:53:10 +0000 (17:53 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Tue, 29 Apr 2025 08:53:10 +0000 (17:53 +0900)
Change-Id: I6b16405f5b884999dabc5fc430fb93902bec8680

dali/internal/event/events/gesture-detector-impl.cpp
dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp

index 2d4807010513180466bb6c29f499862dd0de02c8..0bb704b6980f8c21b85bbaa65407ee5a327edc0f 100644 (file)
@@ -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);
 }
index 3a34a57d35988d56aea5d9aa661c90183292c85b..bff8e4947fc6ac8ee8a8c45d57a94caf3dc24275 100644 (file)
@@ -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.