The Companies page on Stack Overflow has a weird bug that makes the page glitch when scrolling with the middle mouse wheel, one step down. It can't decide between staying on top, or scrolling down.
Example: https://stackoverflow.com/jobs/companies/modus-create or any really
Tested using: Latest Google Chrome (Incognito - Disabled extensions)
Sample behavior: https://i.sstatic.net/HiGYn.jpg
This only happens if you are logged in to an account, otherwise it will scroll downwards without a problem.
Also I tested using the keyboard down arrow key (one click), and it will forever freeze in that state of glitching.
.toggle()
on the class that controls stickiness and size of that<header>
element. The.toggle()
is performed when a SE-custom event,sticky-change
, is fired on the element. I didn't track down what fires the event, but, presumably, it's in ascroll
event handler and doesn't implement some type of hysteresis, or the hysteresis is too small, such that it just repeatedly fires when thescrollY
value lands on or passes through the threshold. It could be implemented based on something else, but it's that type of issue.StackExchange.topbar.toggleUnpinnedLeftNav()
to toggle the left-nav on and off to see it makes a difference for you (without affecting your left-nav preference setting).