wikimedia/WikipediaMobile — pull request #211 by yuvipanda (2012-04-20 18:31:46+00:00)
Title: Don't reset scroll when not needed

Since we're recreating the HTML for the overlays at every show anyway, it doesn't actually need a 'scroll to top'. Also, on Android .scrollTop seems to have no effect now (even with the hide scroll show hack), so we're using window.scrollTo which means we can't have different scroll positions for different overlays. I've spent a while trying to debug this and haven't actually managed to figure out *why* .scrollTop is not working (despite the fact that it used to work). For now, since we don't actually need to reset scroll to top on any overlays, removing them is fine. We will run into this again when dealing with hashlinks though.