From 64aa7231bdd7862133c2b7d90ed6aad0caa6843d Mon Sep 17 00:00:00 2001 From: puxiao Date: Wed, 14 Apr 2021 13:32:38 +0800 Subject: [PATCH 1/2] [examples/index.html]: Change the onmousewheel of the viewer --- examples/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/index.html b/examples/index.html index 408a30f316e039..0724b759ae8064 100644 --- a/examples/index.html +++ b/examples/index.html @@ -38,7 +38,7 @@

three.js

- + @@ -173,6 +173,12 @@

three.js

content.classList.toggle( 'minimal' ); }; + + viewer.addEventListener( 'wheel', function ( event ) { + + event.preventDefault(); + + }, { passive: false } ); // iOS iframe auto-resize workaround From bbda7dd9f6c2f53b73964220f4fd2c38763af31a Mon Sep 17 00:00:00 2001 From: puxiao Date: Wed, 14 Apr 2021 22:29:46 +0800 Subject: [PATCH 2/2] [examples/index.html]: remove onmousewheel --- examples/index.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/index.html b/examples/index.html index 0724b759ae8064..4be8877065e5f9 100644 --- a/examples/index.html +++ b/examples/index.html @@ -173,12 +173,6 @@

three.js

content.classList.toggle( 'minimal' ); }; - - viewer.addEventListener( 'wheel', function ( event ) { - - event.preventDefault(); - - }, { passive: false } ); // iOS iframe auto-resize workaround