Tank barrel seems unstable in full screen mode

I followed the course as closely as I could but now I noticed that the barrel is acting strange in full screen and also when pointed towards the ground. Whatever I could find in the community I tried doing but nothing worked for me. There’s no collision on both barrel and turret. The video attached shows the problem I am facing.
Hoping to get a solution.
Thank you.

GitHub repository: https://github.com/Author55/Battle-Tank

Privacy & Terms