Instead of scroll to player.x, player.y, only scroll to player.x, and have y constant.
Or add a condition to check that when player is jumping, then the scroll only scrolls to the x.
There are a lot of little nuances people don't realize with platformer camera behavior! You'll need to add the exceptions and logic yourself for each situation.