New input system for mobile

Hello there. I’ve a problem. I’m making a platform for mobile and using the new input system.

I attached the OnScreenButton script to the buttons for moving left and right and for jump. Now, they work, but when the character is moving and the press the jump button, it jumps, but stop to move horizontally. Note that this happens only with buttons; using the keyboard everything work.

Someone can tell me why this happens?

Thank you for every help.

Reference the action you are triggering to move and check if the button used to move is going up when you jump.