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

Scrolling only works on click #155

Closed
maxgerber opened this issue May 14, 2018 · 0 comments
Closed

Scrolling only works on click #155

maxgerber opened this issue May 14, 2018 · 0 comments

Comments

@maxgerber
Copy link
Contributor

Problem: In order to be able to access and scroll through the site using arrow keys, users have to at first click on the page.

Cause: This is because the entire app currently exists within a fixed div which allows us to scroll to the top of the page on every UrlChange through Elm's native elm-lang/dom scroll library. This means that according to the browser, there is nothing to scroll on because the full-screen container for the app is not active until it is clicked on.

Possible solution: We could create an elm port that takes an element ID (which exists inside the app, has no native functionality and is not visible), retrieves that element in javascript, makes sure it is fully rendered, and then clicks it. However, there might be a more elegant solution to this problem, so we should do a technical spike first to determine our best options.

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

No branches or pull requests

1 participant