react-scroll
react-scroll copied to clipboard
Jumping between links after clicking a link
Not sure if this is a new issue, but in my case sometimes when i click on one of the links, it jumps between the current link and the link clicked, not sure why, it seems that in such case, it somehow immediately jumped to the link ignoring the duration i give it, and after that keep teleporting between the 2 links non-stop. Does anyone else have this problem?
Could you provide a plunker demonstrating your issue?
@fisshy Hey thanks for the reply, my site where it has this problem is(hopefully this helps, can't really make a plunker for it):
https://swift.ratecity.com.au/car-loans/guide
Basically once you start clicking on the links on the top: "Checklist", "Loan Type" etc, after a few clicks it starts jumping around, the setup for Link is: smooth=true, spy=true, offset=-55, duration=500
It seems to be ok on Safari but not on other browsers
the issue only seems to appear if you click meanwhile it scrolls, not if you wait for the scroll to complete.
Do you possible have any events triggering scroll? Like after loading data.
I can't reproduce it in my examples, could you provide a plunker with the same issue?
@fisshy it doesn't just happen when i clicking while it scrolls, you can wait until the scroll stops and click on a link and it could still happen. What i noticed is that if i set the duration much longer this problem no longer exists, don't really understand why.