Hi, I managed to find a work-around. The main issue for me was that when the jump happens, it caused my heading to be overlapped with the content on the scroll to the top.
I managed to solve this issue by specifying a minimum height for my main section, now the jump still happens, but the overlapping is gone.
Thanks anyway