Fix scrollTop detection on Firefox.