angular-scroll-spy
angular-scroll-spy copied to clipboard
change offsetTop
I changed offsetTop function to target.getBoundingClientRect().top. offsetTop gets the relative position of the parent node which, if we have a element wrapper, turns the value always 0 and never trigger the scroll-spy.