File tree Expand file tree Collapse file tree
packages/modelviewer.dev/examples/scenegraph Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ <h2 class="demo-title">Model Transformations</h2>
201201 .controls input [type = number ] {
202202 -moz-appearance : textfield;
203203 }
204+ model-viewer # transform [ar-status = "session-started" ] .controls {
205+ position : fixed;
206+ }
204207 </ style >
205208 < model-viewer id ="transform " orientation ="20deg 0 0 " shadow-intensity ="1 " camera-controls
206209 touch-action ="pan-y " ar src ="../../shared-assets/models/Astronaut.glb "
@@ -266,7 +269,7 @@ <h2 class="demo-title">Model Transformations</h2>
266269 controls . style . transform = 'none' ;
267270 return ;
268271 }
269- const layoutHeight = window . innerHeight ;
272+ const layoutHeight = document . documentElement . clientHeight ;
270273 const visualHeight = window . visualViewport . height ;
271274 const offsetTop = window . visualViewport . offsetTop ;
272275 const offset = layoutHeight - ( visualHeight + offsetTop ) ;
You can’t perform that action at this time.
0 commit comments