We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf4a9e commit c0537d2Copy full SHA for c0537d2
examples/index.html
@@ -264,16 +264,13 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
264
event.preventDefault();
265
} );
266
267
- // iOS8 workaround
+ // iOS iframe auto-resize workaround
268
269
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
270
271
- viewer.addEventListener( 'load', function ( event ) {
272
-
273
- viewer.contentWindow.innerWidth -= 10;
274
- viewer.contentWindow.innerHeight -= 2;
275
276
- } );
+ viewer.style.width = window.innerWidth - 310 + 'px';
+ viewer.style.height = window.innerHeight + 'px';
+ viewer.setAttribute( 'scrolling', 'no' );
277
278
}
279
0 commit comments