What I did was when I perform mousewheel event/scroll I cache the y coordinates and perform some simple math to get my desired position ansd that the div button will always scroll along with my mousewheel.
something like this:
$window.scroll(function() {
$flMenu.css({"top":$windowY - $navY})
});
But the problem is that when I scroll slightly faster or testing it on a slow computer, the div flicker/ glitch out a little but the position still maintain the same.
Is there a way to improve/prevent flickering on the div which carried the dynamic values?