yurian
Scrollspy is making goofy jumps
Hello there. I'm working on a scrollspy feature for my website. To change the hash, I'm using a simple
navigateTo
call, but I've tried with router.push({hash: newHash})
and I get the same results, which is these goofy jumps that are shown in the video. Is there a way to make those navigations without the scroll going to to the top of the element the hash refers to?
This is my code:
Also, when I collect the elements to be hashed on the route, it seems is only collecting those at the current component and not their children. Is there a workaround this?
Thanks a lot for reading this. Any help is really appreciated.5 replies