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: handle popstate for navigation in mobile entry content #2038

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

CanglongCl
Copy link
Contributor

@CanglongCl CanglongCl commented Dec 7, 2024

Description

Resolved issue where back navigation to the pending view would not behave correctly after changing orientation in some device.

Before: after changing the orientation, the BACK button is navigate to previous feeds, which is expected to navigate to all feeds view.

Screen-2024-12-06-235533.mp4

After: now the back navigation will be force pushed to previous feed list.

Screen-2024-12-06-235449.mp4

For some iPad users, using Landscape orientation to browser the list and preview on right, while using Portrait orientation for reading provides excellent experience. This PR will improve experience in this situation.

PR Type

  • Feature
  • Bugfix
  • Hotfix
  • Other (please describe):

Linked Issues

Additional context

Changelog

  • I have updated the changelog/next.md with my changes.

@follow-reviewer-bot
Copy link

Thank you for your contribution. We will review it promptly.

Copy link

vercel bot commented Dec 7, 2024

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

Name Status Preview Comments Updated (UTC)
follow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2024 8:34am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
follow-external-ssr ⬜️ Ignored (Inspect) Visit Preview Dec 7, 2024 8:34am

@follow-reviewer-bot
Copy link

Suggested PR Title:

fix: handle popstate for navigation in mobile entry content

Change Summary:
Added popstate event handling to correctly navigate back to pending views after orientation change, improving user experience on mobile devices.

Code Review:
No change requests necessary.

Copy link

vercel bot commented Dec 7, 2024

@CanglongCl is attempting to deploy a commit to the RSS3 Team on Vercel.

A member of the Team first needs to authorize it.

@CanglongCl CanglongCl changed the title fix: handle back navigation to pending view while changing device orientation fix: handle popstate for navigation in mobile entry content Dec 7, 2024
@Innei Innei merged commit ab85406 into RSSNext:dev Dec 8, 2024
9 of 10 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.

2 participants