mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
Revert "only count an element as touched if no other gestures are active"
This reverts commit 08188a1a
This commit is contained in:
parent
08188a1a8f
commit
f70b1266f9
1 changed files with 1 additions and 2 deletions
|
@ -205,8 +205,7 @@ namespace MLEM.Ui {
|
||||||
if (held != null && held.CanBePressed)
|
if (held != null && held.CanBePressed)
|
||||||
this.System.OnElementSecondaryPressed?.Invoke(held);
|
this.System.OnElementSecondaryPressed?.Invoke(held);
|
||||||
} else {
|
} else {
|
||||||
// only count an element as being touched if no other gestures are active right now
|
var held = this.Input.TouchState.Select(l => this.GetElementUnderPos(l.Position)).FirstOrDefault();
|
||||||
var held = !this.Input.Gestures.Any() ? this.Input.TouchState.Select(l => this.GetElementUnderPos(l.Position)).FirstOrDefault() : null;
|
|
||||||
if (held != this.TouchedElement) {
|
if (held != this.TouchedElement) {
|
||||||
if (this.TouchedElement != null)
|
if (this.TouchedElement != null)
|
||||||
this.System.OnElementTouchExit?.Invoke(this.TouchedElement);
|
this.System.OnElementTouchExit?.Invoke(this.TouchedElement);
|
||||||
|
|
Loading…
Reference in a new issue