Skip to content

Commit

Permalink
set Handled to False on Android Touch event (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
YZahringer authored Sep 26, 2020
1 parent f16d527 commit 4780d56
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions TouchEffect.Droid/PlatformTouchEff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ protected override void OnDetached()

private void OnTouch(object sender, AView.TouchEventArgs e)
{
e.Handled = false;

if (_effect?.IsDisabled ?? true) return;

if (IsAccessibilityMode)
{
return;
}
e.Handled = true;

switch (e.Event.ActionMasked)
{
case MotionEventActions.Down:
Expand Down Expand Up @@ -186,9 +188,6 @@ private void OnTouch(object sender, AView.TouchEventArgs e)
_isHoverSupported = true;
_effect?.HandleHover(HoverStatus.Exited);
break;
default:
e.Handled = false;
break;
}
}

Expand Down

0 comments on commit 4780d56

Please sign in to comment.