Flagging sometimes loses scroll position

We need a solid repro here. Try on try.discourse.org, there is a 1000 reply topic in there to test with.