Auto offsetX adjustment through threading implemented at the cost of lag
and further keyboard glitches. Maybe find better way to change camera
view?