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 Auto Scroll on expand #228

Merged
merged 8 commits into from
Sep 26, 2024
Merged

Fix Auto Scroll on expand #228

merged 8 commits into from
Sep 26, 2024

Conversation

thomhickey
Copy link
Collaborator

@thomhickey thomhickey commented Sep 10, 2024

Fixes #226 by using preferred DOM scrollIntoView instead of fixed-height scrolling. We also watch for the css animation to complete before auto scrolling, this is what really fixes this issue. NOTE: there is a delay because we have to expand first, then auto-scroll, but this is only really noticeable when scrolled to the bottom of the list and clicking on the last school.

Also adds 'id' to the School type so that we aren't using school name in react components.

Also a little bit of code cleanup.

Copy link

vercel bot commented Sep 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
support-sfusd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2024 4:39pm

@thomhickey thomhickey changed the title Fix Auto Scroll on expand + create hashed route for /map#list Fix Auto Scroll on expand Sep 14, 2024
Copy link
Collaborator

@mattgianni mattgianni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works smoothly on my end - tested primarily on chrome/mac

@nickvisut nickvisut merged commit 95b54c9 into develop Sep 26, 2024
2 checks passed
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.

"learn more" gets cut off in list view (at least on mobile)
3 participants