Steven Kirk 3 năm trước cách đây
mục cha
commit
73cc163822
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      src/Avalonia.Base/Input/Gestures.cs

+ 1 - 5
src/Avalonia.Base/Input/Gestures.cs

@@ -94,7 +94,7 @@ namespace Avalonia.Input
                 var e = (PointerPressedEventArgs)ev;
                 var visual = (IVisual)ev.Source;
 
-                if (e.ClickCount <= 1)
+                if (e.ClickCount % 2 == 1)
                 {
                     s_isDoubleTapped = false;
                     s_lastPress.SetTarget(ev.Source);
@@ -108,10 +108,6 @@ namespace Avalonia.Input
                         e.Source.RaiseEvent(new TappedEventArgs(DoubleTappedEvent, e));
                     }
                 }
-                else
-                {
-                    s_isDoubleTapped = false;
-                }
             }
         }