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.