Fix scrollTop detection in Firefox.