Setup multitouch/press two buttons at the same time on mobile

I have two buttons, the joystick to move the player, and a jump button. however when i press the jump button and at the same moment the joystick is moving, the joystick just moves to the jump button which makes it impossible to jump and move at the same time, how should I make it so u can both jump and move the character at the same time?

I would recommend checking out the “Multitouch” example here, and see how your touch events differ compared to it: