geolocation stops following map on device rotation regression
Open
Nobody has claimed this yet.
bug :lady_beetle:
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
mapbox-gl-js version:
1.12.0
browser:
safari
Steps to Trigger Behavior
- activate geolocation (map follows user)
- rotate iphone (eg from portrait to landscape)
- the resulting map movement is not filtered and the geolocation steps out of the follow me modus.
this was an old bug, was then fixed but is now a regression
Link to Demonstration
https://docs.mapbox.com/mapbox-gl-js/example/locate-user/
Expected Behavior
eventually resulting map movement is ignored (keeps following user position)
Actual Behavior
map stops following
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
Start with the locate-user example linked in the issue and reproduce the behavior on Safari while rotating an iPhone during geolocation follow mode. Trace how rotation-related map movement interacts with the follow-user behavior. Done means the rotation movement is ignored and the map continues following the user's position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100