Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/wasm-application-runner.ts @ 545:e1ba16436d59 dev
set events passive again
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 29 Mar 2019 15:21:33 +0100 |
parents | f65748b33bd1 |
children | 70992b38aa8a 636eb0e4c9dd |
comparison
equal
deleted
inserted
replaced
544:11510f92cc38 | 545:e1ba16436d59 |
---|---|
105 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done"); | 105 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done"); |
106 | 106 |
107 // Prevent scrolling | 107 // Prevent scrolling |
108 document.body.addEventListener('touchmove', function (event) { | 108 document.body.addEventListener('touchmove', function (event) { |
109 event.preventDefault(); | 109 event.preventDefault(); |
110 }, { passive: false}); | 110 }, { passive: false}); // must not be passive if calling event.preventDefault, ie to cancel scroll or zoom of the whole interface |
111 | 111 |
112 _InitializeWasmApplication(orthancBaseUrl); | 112 _InitializeWasmApplication(orthancBaseUrl); |
113 }); | 113 }); |
114 } | 114 } |
115 | 115 |