[NUI] Fix incorrect calculation of configGestureCount.
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 9 Jun 2023 02:12:27 +0000 (11:12 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Fri, 9 Jun 2023 02:11:25 +0000 (11:11 +0900)
src/Tizen.NUI/src/public/BaseComponents/View.cs

index a831ade..f46d50c 100755 (executable)
@@ -3559,7 +3559,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);
@@ -3573,12 +3573,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