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 page jumping to top when exiting fullscreen mode #4041

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

RyanCoulsonCA
Copy link
Contributor

@RyanCoulsonCA RyanCoulsonCA commented Sep 23, 2022

Closes ramp4-pcar4/story-ramp#187

This PR fixes an issue where the page jumps back to the top after exiting fullscreen. Now when you exit the page will jump to the map that was set to full screen.

For testing purposes, I've modified the index-many-2.html test page to display maps vertically. I can change this back once testing is complete. Try full screening each of these and ensure the page jumps to the correct map when you exit. You can also play around with other samples to make sure this works for those too.


This change is Reviewable

@github-actions
Copy link

Your demo site is ready! 🚀 Visit it here: https://fgpv-vpgf.github.io/fgpv-vpgf/fix-187/samples/index-samples.html

Copy link
Contributor

@yileifeng yileifeng left a comment

Choose a reason for hiding this comment

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

Seems to be working for me when using esc to exit full screen but not when using the full screen sidenav button to exit (issue persists).

Reviewable status: 0 of 2 files reviewed, all discussions resolved

Copy link
Contributor Author

@RyanCoulsonCA RyanCoulsonCA left a comment

Choose a reason for hiding this comment

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

Should be fixed now. I guess pressing the button caused the escape handler to be called twice, so it was jumping to the element and then back to the top when it was called the second time.

Reviewable status: 0 of 2 files reviewed, all discussions resolved

Copy link
Member

@spencerwahl spencerwahl left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)

Copy link
Contributor

@yileifeng yileifeng left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)

Copy link
Member

@james-rae james-rae left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)

Copy link
Member

@james-rae james-rae left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)

@james-rae james-rae merged commit 5b9a718 into fgpv-vpgf:develop Oct 7, 2022
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.

None yet

4 participants