changeset 837:847fd11384bc am-dev

don't forbid touchmove anymore at document level. It's a bit rough to re-enable it later i.e in components that needs it (SortableJS in my case).
author Alain Mazy <alain@mazy.be>
date Wed, 05 Jun 2019 17:43:59 +0200
parents 67d0a8da4afe
children 997290c7d537
files Platforms/Wasm/wasm-application-runner.ts
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Platforms/Wasm/wasm-application-runner.ts	Mon May 27 22:41:51 2019 +0200
+++ b/Platforms/Wasm/wasm-application-runner.ts	Wed Jun 05 17:43:59 2019 +0200
@@ -130,11 +130,6 @@
 
     Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done");
 
-    // Prevent scrolling
-    document.body.addEventListener('touchmove', function (event) {
-      event.preventDefault();
-    }, { passive: false}); // must not be passive if calling event.preventDefault, ie to cancel scroll or zoom of the whole interface
-
     _InitializeWasmApplication(orthancBaseUrl);
   });
 }