Offset and resolution need to be updated upon dom scroll event