Small performance optimization for finding scroll position and scrolling active, mostly affects firefox