You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's look at making the interaction between controls and scrolling better, and more natural.
The issue now is that the model element, with controls enabled (after #56 is fixed), captures all events, including those that would scroll the page. On mobile where the element takes up a significant portion of screen real estate we may end up preventing any scrolling past a certain point.
We discussed some solutions that we think have potential, including (I may be missing some):
By default, having the model only move vertically a small amount; after that reaches the maximum, go back to scrolling the page
Pass initial vertical movements up to the page; the user would have to interact with the model by rotating it horizontally before they could rotate it vertically
Other options:
Using 2 fingers to move the model, a single finger scrolls the page
👍 You are right. The necessary feature is in the controls (it can be configured only to cancel handled events, which allows the user to scroll after they have rotated to the minimum polar angle), but we don't use it in <model-viewer> yet. Reopening!
Activity
smalls commentedon Nov 26, 2018
Let's get a prototype together, but we may want to iterate after that. @cdata may be able to split this out into some smaller issues.
cdata commentedon Dec 12, 2018
Some concrete improvements being made in the first pass:
OrbitControlsuses a "damping" approach, which usually results in the camera overshooting its target / limits and only eases when slowing down.OrbitControlsuses global listeners for keyboard inputOrbitControlsuses arrow keys to control panningOrbitControlsconsumes all events that it handles, even if it effectively does nothing with themmrdoob commentedon Jan 9, 2019
I don't think this has been fixed.
On mobile the component still doesn't allow the user to scroll the page when it fills the page.
cdata commentedon Jan 9, 2019
👍 You are right. The necessary feature is in the controls (it can be configured only to cancel handled events, which allows the user to scroll after they have rotated to the minimum polar angle), but we don't use it in
<model-viewer>yet. Reopening!