Joystick not capturing clicks and drags

I want to convert the Unity’s Survival Shooter game for mobile. I have added joystick using UI->Image and attached a Script to the Image. The class extends IDragHandler, IPointerUpHandler, IPointerDownHandler but none of the relevant functions respond except the Start() function

I also tried taking input from Unity remote app but no luck.

Unity’s tutorial said to keep Canvas interactable to be unchecked. Now I have checked it for all of the elements. I have EventSystem in the Heirarchy and none of the UI elements are blocking the joystick. I tried sliding the Health Slider and it doesn’t slide too.

I can’t figure out what is wrong with this game and stuck here for about a week. Does Raycast Target have anything to do with this? Currently its checked for all the elements.

@meat5000
If you know the reason, can you help me out?