Rule's ScrollSpy implementation