diff --git a/src/Core/src/Platform/Android/EditTextExtensions.cs b/src/Core/src/Platform/Android/EditTextExtensions.cs index 536f729f608b..fc2556543e3e 100644 --- a/src/Core/src/Platform/Android/EditTextExtensions.cs +++ b/src/Core/src/Platform/Android/EditTextExtensions.cs @@ -353,16 +353,16 @@ internal static bool HandleClearButtonTouched(this EditText? platformView, Touch if (motionEvent is null) return false; + if (motionEvent.Action != MotionEventActions.Up) + return false; + var rBounds = getClearButtonDrawable?.Invoke()?.Bounds; var buttonWidth = rBounds?.Width(); if (buttonWidth <= 0) return false; - - if (motionEvent.Action != MotionEventActions.Up) - return false; - - var x = motionEvent.RawX; + + var x = motionEvent.GetX(); var y = motionEvent.GetY(); var flowDirection = platformView.LayoutDirection;