Use throttle to update viewport size and position