Fix auto scrolling in code blocks