Raycasting UI

Im trying to make my custom joystick, joystick has its own 2d circle collider. I want to raycast when touching a screen so when i raycast ,ray starts with touch position and if it touches collider of joystick. I just wanna know if finger is touching a joystick or some other button. Im having a problem when it is always moving a player even if im not touching a joystick. Help plzzz

Im asking this question beacuse i cant actually find any really usefull tutorial for mobile fp movement

I found out that I just had to use 2d Physics raycast, now im dealing with other problems

Ensure your raycast checks specifically for the joystick’s collider. Implement a boolean flag that activates only when the touch starts on the joystick. If the raycast hits another UI element, prevent player movement accordingly.