Browse Source

Editor: Improved code that avoids page reload and overscroll.

Mr.doob 5 years ago
parent
commit
043e5c932d
2 changed files with 5 additions and 1 deletions
  1. 4 0
      editor/css/main.css
  2. 1 1
      editor/index.html

+ 4 - 0
editor/css/main.css

@@ -2,6 +2,10 @@
 	color-scheme: light dark;
 }
 
+html {
+	touch-action: none;
+}
+
 body {
 	font-family: Helvetica, Arial, sans-serif;
 	font-size: 14px;

+ 1 - 1
editor/index.html

@@ -8,7 +8,7 @@
 		<link rel="manifest" href="manifest.json">
 		<link rel="shortcut icon" href="../files/favicon.ico" />
 	</head>
-	<body ontouchstart="">
+	<body>
 		<link rel="stylesheet" href="css/main.css">
 
 		<script src="../examples/js/libs/jszip.min.js"></script>