$(window).scroll not fast enough to process my jquery?
问题 Im having an issue with window scrolling where I think events are firing too quickly to process. Im using waypoints to detect when a subnav on my page hits the header when scrolling, and when it does it pushes the header up off the page. And when scrolling back up, the header gets pulled down into its original position. Now the first part works flawlessly, the head gets pushed up, but pulling it back down is very buggy. Scrolling too quickly results in the header getting stuck on the way. It