Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrolling in Firefox #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ColonelPhantom
Copy link

@ColonelPhantom ColonelPhantom commented Mar 26, 2024

Closes #226

By removing the scrollTo(0,0) in Index.svelte for unsubscribeCurrentRoute it seems like scrolling in Firefox is fixed.

My guess is that in Firefox this scrollTo 'wins', whereas in Chromium the hash wins.

I'm not sure if this scrollTo was doing any heavy lifting; a cursory glance showed that most things still seem to work, but as I'm not the original author I'm not sure why this was in there.

As such it is highly possible that I just accidentally removed Chesterton's Fence, but I felt this was at least worth putting out there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigation broken in Firefox
1 participant