Button OnClick() fires only when the button is released

The script that I put on the OnClick() of a button only executes when I completely release the button, these makes my game so easy, help me

Use next: Event → EventTrigger → PointerDown

Because OnClick() called when player clicked and released completely,

if you want to do action immediately you can use PointerDown() this called every frame while your button held down, so you may also want to check PointerUp() too.

like : if pointerDown and b== false //do something , bool b = true

else if pointerUp //b=false;