vendor/assets/src/index_server_wasm.html in atome-0.5.7.0.7 vs vendor/assets/src/index_server_wasm.html in atome-0.5.7.1.0
- old
+ new
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="En" id="html">
<head>
<link rel="icon" type="image/x-icon"
href="https://github.com/atomecorp/atome/blob/master/vendor/assets/src/favicon.ico">
- <meta name='viewport' content='initial-scale=1, width=device-width, viewport-fit=cover'>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover,user-scalable=no">
<meta charset='UTF-8'/>
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link type="text/css" rel="stylesheet" href="css/style.css">
<style id="atomic_style"></style>
@@ -40,6 +40,18 @@
<script defer src="js/atome/specific/wasm.js" type="text/javascript"></script>
<script type="text/javascript">
const NativeMode = false; // used by atome.js to load code on the fly
</script>
<script defer src="js/atome/atome.js" type="text/javascript"></script>
+<script defer>
+ document.addEventListener('touchstart', function(event) {
+ if (event.touches.length > 1) {
+ event.preventDefault();
+ }
+ }, { passive: false });
+ document.addEventListener('wheel', function(event) {
+ if (event.ctrlKey === true) {
+ event.preventDefault(); // EmpĂȘche le zoom quand Ctrl est pressĂ© et que l'utilisateur scroll avec le trackpad
+ }
+ }, { passive: false });
+</script >
</html>