From f70b1266f933616431e7c5c4d3405ee36ae95a1a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 3 Jun 2020 16:18:17 +0200 Subject: [PATCH] Revert "only count an element as touched if no other gestures are active" This reverts commit 08188a1a --- MLEM.Ui/UiControls.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MLEM.Ui/UiControls.cs b/MLEM.Ui/UiControls.cs index b804bcf..3de8385 100644 --- a/MLEM.Ui/UiControls.cs +++ b/MLEM.Ui/UiControls.cs @@ -205,8 +205,7 @@ namespace MLEM.Ui { if (held != null && held.CanBePressed) this.System.OnElementSecondaryPressed?.Invoke(held); } else { - // only count an element as being touched if no other gestures are active right now - var held = !this.Input.Gestures.Any() ? this.Input.TouchState.Select(l => this.GetElementUnderPos(l.Position)).FirstOrDefault() : null; + var held = this.Input.TouchState.Select(l => this.GetElementUnderPos(l.Position)).FirstOrDefault(); if (held != this.TouchedElement) { if (this.TouchedElement != null) this.System.OnElementTouchExit?.Invoke(this.TouchedElement);