Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>

</div>

<iframe id="viewer" name="viewer" allowfullscreen allowvr onmousewheel=""></iframe>
<iframe id="viewer" name="viewer" allowfullscreen allowvr></iframe>

<a id="button" target="_blank"><img src="../files/ic_code_black_24dp.svg"></a>

Expand Down Expand Up @@ -173,6 +173,12 @@ <h1><a href="https://threejs.org">three.js</a></h1>
content.classList.toggle( 'minimal' );

};

viewer.addEventListener( 'wheel', function ( event ) {

event.preventDefault();

}, { passive: false } );

// iOS iframe auto-resize workaround

Expand Down