Allow the target's offset to change

The height of some elements in the dom might change, thus the offset of the target might change also. This fix computes the offset of the target in the checkScroll method.