Not sure if this is a problem with my hardware, but my Linux (Gateway) laptop can only look around while moving in one specific circumstance: when I keep holding the touchpad and sprint. I use arch btw
Solution: Lower Palm Check™ sensitivity or disable “Disable touchpad while typing”, which serves to prevent accidental touching of the touchpad while typing, hence “Palm”
Disable resolution scaling for your desktop perhaps, or make sure the game runs in the exact same resolution.