SyntaxFix
Write A Post
Hire A Developer
Questions
I think gmail just tracks the scroll position on a timer and repositions a div accordingly.
div
The best solution I've seen is at doctyper.
A simpler jQuery solution that moves an element onscroll: link