Adjust scroll calculations