scrolling
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
Hello, I am trying to do one thing.
Simplified: I have a function that returns all the sections I can see and I have a useEffect thrown on that data, when I see a section I scroll on it.
I tried through
The problem is that it only works in firefox and in no other browser (Chrome, Edge, Opera) it does not want to scroll to that element.
Everything is defined and triggers correctly.
Simplified: I have a function that returns all the sections I can see and I have a useEffect thrown on that data, when I see a section I scroll on it.
I tried through
ref.scrollIntoView(true)(all settings), window.location.hash, useRouter().push/replace (scroll=true). The problem is that it only works in firefox and in no other browser (Chrome, Edge, Opera) it does not want to scroll to that element.
Everything is defined and triggers correctly.