Take scrolling into account when measuring DOM offsets.