cross-browser scroll detection implemented