Window scroll event controller using request animation frame.