angular-scroll-spy icon indicating copy to clipboard operation
angular-scroll-spy copied to clipboard

change offsetTop

Open brab0 opened this issue 8 years ago • 0 comments

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.

brab0 avatar Apr 21 '17 19:04 brab0