Last modified: 2012-05-01 02:17:16 UTC
Created attachment 10480 [details] Screenshot See the screenshot. It's a very, very precise bug; if I scroll after loading the page fresh, the top bar follows nicely. If I then go all the way to the top of the page again, *then* scroll, it fails to follow. Go to the top again, scroll again, it does. It quite literally appears 50 percent of the time ;p
I can reproduce this every once in a while in Firefox. It does seem to have something to do with returning to the very top of the page after scrolling.
This bug is very frustrating. Apparently, every once in a while... $( '#mwe-pt-list-control-nav' ).parent().addClass('stickyTop'); just fails silently. No idea why.
Seems to be a Firefox bug. If I activate the Javascript debugger in Firefox, it works without fail, but if the debugger is turned off, it's unreliable. Probably related to Firefox's weird JS thread handling.
Tracked it down to a concurrency problem. Fixed in https://gerrit.wikimedia.org/r/#change,6221 by reworking the top waypoint function and adding some sanity checks.