[NUI] Fix incorrect calculation of configGestureCount.
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 9 Jun 2023 02:12:27 +0000 (11:12 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 14 Jun 2023 03:59:37 +0000 (12:59 +0900)
src/Tizen.NUI/src/public/BaseComponents/View.cs

index 872519a..fa6392e 100755 (executable)
@@ -3599,7 +3599,7 @@ namespace Tizen.NUI.BaseComponents
 
             if (dispatch == true)
             {
-                configGestureCount = configGestureCount > 0 ? configGestureCount-- : 0;
+                configGestureCount = configGestureCount > 0 ? configGestureCount - 1 : 0;
                 if (configGestureCount == 0)
                 {
                     panGestureDetector.Detach(this);
@@ -3613,12 +3613,6 @@ namespace Tizen.NUI.BaseComponents
                     pinchGestureDetector.Detected -= OnGestureDetected;
                     tapGestureDetector.Detected -= OnGestureDetected;
                     rotationGestureDetector.Detected -= OnGestureDetected;
-
-                    panGestureDetector = null;
-                    longGestureDetector = null;
-                    pinchGestureDetector = null;
-                    tapGestureDetector = null;
-                    rotationGestureDetector = null;
                 }
             }
             else