google / google/model-viewer

iOS Chrome 119 Beta: When exiting an AR QuickLook session the originating HTML page view is broken

Open
#4,569 3 comments 0 reactions 0 assignees View on GitHub
flag: not model-viewer
Dominant language
TypeScript
Stars
8.2k
Forks
947
PR merge metrics
No merged PRs in 30d

Description

### Description

When exiting an AR QuickLook session, the originating HTML page is scrolled back to the top of the page, and the entire viewport is shifted down the screen making it look broken.

When using inspection tools, it appears that the entire HTML element has been shifted down the screen.

This used to work fine in previous versions where web page would not be scrolled and viewport would not be moved.

Chromium Bug Reported:
https://bugs.chromium.org/p/chromium/issues/detail?id=1502773

#### Live Demo

https://modelviewer.dev/examples/augmentedreality/index.html#ar

Repro steps:
- In iOS Chrome, view above link
- Tap AR button to open astronaut in ARQL
- Exit the ARQL session
- Observe, the HTML page has scrolled back to the top and the entire viewport has shifted down

Similar experience when viewing non Model-Viewer ARQL content. For example, viewing any 3D model from:
https://developer.apple.com/augmented-reality/quick-look/

### Version

- model-viewer: 3.3.0 (any?)

### Browser Affected

- [x] Chrome, version: 119.0.6045.24 beta
- [ ] Edge
- [ ] Firefox
- [ ] IE
- [ ] Safari

### OS

- [ ] Android
- [x] iOS, version: 17.2 Beta 3 (21C5046c)
- [ ] Linux
- [ ] MacOS
- [ ] Windows

### AR

- [ ] WebXR
- [ ] SceneViewer
- [x] QuickLook

### Screenshots

Before ARQL:
![IMG_8574](https://github.com/google/model-viewer/assets/53870482/7a256656-c395-4e1d-8918-8cb8c394eb07)

After ARQL:
![IMG_8575](https://github.com/google/model-viewer/assets/53870482/473f0018-3103-4412-9354-b9437447e91e)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.