diff --git a/TouchEffect.Droid/PlatformTouchEff.cs b/TouchEffect.Droid/PlatformTouchEff.cs index c3e47ec..53f9d5b 100644 --- a/TouchEffect.Droid/PlatformTouchEff.cs +++ b/TouchEffect.Droid/PlatformTouchEff.cs @@ -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: @@ -186,9 +188,6 @@ private void OnTouch(object sender, AView.TouchEventArgs e) _isHoverSupported = true; _effect?.HandleHover(HoverStatus.Exited); break; - default: - e.Handled = false; - break; } }