Large documents cause the editor to glitch and jump around. If you open the console you can see the indices of the viewport, and they change radically at some points as you scroll through.
Here is a video of how it looks on my mac in firefox: https://imgur.com/a/4no7IY8
Link to example: cocky-engelbart-ulc0cb - CodeSandbox