Hi, I guess you should also handle window resize events, at least when the target selector is null. The scroll position may change after resize.