comparison Platforms/Wasm/wasm-application-runner.ts @ 533:1c5104a6f7e4 dev

fix warning for preventDefault
author Alain Mazy <alain@mazy.be>
date Mon, 18 Mar 2019 16:01:07 +0100
parents 548eed46f535
children f65748b33bd1
comparison
equal deleted inserted replaced
526:548eed46f535 533:1c5104a6f7e4
107 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done"); 107 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done");
108 108
109 // Prevent scrolling 109 // Prevent scrolling
110 document.body.addEventListener('touchmove', function (event) { 110 document.body.addEventListener('touchmove', function (event) {
111 event.preventDefault(); 111 event.preventDefault();
112 }, false); 112 }, { passive: false});
113 113
114 _InitializeWasmApplication(orthancBaseUrl); 114 _InitializeWasmApplication(orthancBaseUrl);
115 }); 115 });
116 } 116 }
117 117