Mouse cursor doesn't move diagonally and stops over buttons

What you’ve given so far is a start – but that’s just like saying “Here’s the make and model of my car; It won’t start; What do I do?”

That’s why other information; the outputs of various commands; are more helpful to identify a problem.

It’s your machine: You need to help us help you.

What graphic drivers? What mouse drivers? What commands did you use? Be specific.

→ Because, you haven’t run any commands to find out.

From top to bottom the output of commands from the following tutorial will likely help someone take a better guess; the more usable information you can provide, the better:

Read any page that tutorial links to, as well.

Try another kernel

In the meantime, you could try installing the 6.1 LTS kernel to see if that helps in any way. Cheers.