Made window scroll capture work