Hitting mobs while swimming causes the player's swimming speed to slow down
When swimming in water, attacking a mob causes the swimming speed of the player to be slowed down.
When swimming in water, attacking a mob causes the swimming speed of the player to be slowed down.