comparison Platforms/Wasm/wasm-application-runner.ts @ 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 861c080ef47b
comparison
equal deleted inserted replaced
785:67d0a8da4afe 837:847fd11384bc
128 128
129 SendSerializedMessageToStoneApplication = (<any> window).StoneFrameworkModule.cwrap('SendSerializedMessageToStoneApplication', 'string', ['string']); 129 SendSerializedMessageToStoneApplication = (<any> window).StoneFrameworkModule.cwrap('SendSerializedMessageToStoneApplication', 'string', ['string']);
130 130
131 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done"); 131 Logger.defaultLogger.debug("Connecting C++ methods to JS methods - done");
132 132
133 // Prevent scrolling
134 document.body.addEventListener('touchmove', function (event) {
135 event.preventDefault();
136 }, { passive: false}); // must not be passive if calling event.preventDefault, ie to cancel scroll or zoom of the whole interface
137
138 _InitializeWasmApplication(orthancBaseUrl); 133 _InitializeWasmApplication(orthancBaseUrl);
139 }); 134 });
140 } 135 }
141 136
142 137