When you scroll down on the code block and answer the questions, the app navigates to the next question replacing the code block content but it preserves the previous scroll position. The scroll position should be set to top when changing questions to avoid this behaviour.