iOS back motion inconsistency
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
Describe the bug
The back motion on iOS in dependent on the scroll position of the page you are currently on.
When on the very top of page A and going back from page A to page B, you will see page B below page A during the motion.
However, if you scroll page A down before doing the back motion then you will see a blank page below page A.
https://github.com/user-attachments/assets/830583e5-1d3a-493d-9456-e41af8f28ca1
Reproduction
On iOS device.
Create svelte demo project via:
https://svelte.dev/docs/kit/creating-a-project
Add this to package.json scripts:
"dev-phone": "vite dev --host "
- Execute: npm run dev-phone
- Navigate from Home to About through navbar
- Execute back motion on iOS (works as expected)
- Navigate from Home to About through navbar
- Scroll to the bottom of about
- Execute back motion on iOS (page below about is blank)
Logs
No response
System Info
Device:
iPhone 13
iOS 18.1.1
Safari
Severity
annoyance
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Create the Svelte demo project using the linked project guide and add the package.json dev-phone script. Reproduce the back motion on an iPhone 13 with Safari both at the top of About and after scrolling to its bottom. Trace the navigation behavior from the Home-to-About reproduction; done means the page below About is rendered consistently during back motion in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100