Open brab0 opened 7 years ago
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.
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.