Browse Source

prevent save-image on long press

Gregg Tavares 6 years ago
parent
commit
65be6b7d29

+ 5 - 0
threejs/threejs-game-conga-line-w-notes.html

@@ -15,6 +15,11 @@
     html, body {
         margin: 0;
         height: 100%;
+        user-select: none;
+    }
+    img, canvas {
+        /* prevent the save-image on long press on mobile */
+        pointer-events: none;
     }
     #c {
         width: 100%;

+ 5 - 0
threejs/threejs-game-conga-line.html

@@ -15,6 +15,11 @@
     html, body {
         margin: 0;
         height: 100%;
+        user-select: none;
+    }
+    img, canvas {
+        /* prevent the save-image on long press on mobile */
+        pointer-events: none;
     }
     #c {
         width: 100%;

+ 5 - 0
threejs/threejs-game-player-input.html

@@ -15,6 +15,11 @@
     html, body {
         margin: 0;
         height: 100%;
+        user-select: none;
+    }
+    img, canvas {
+        /* prevent the save-image on long press on mobile */
+        pointer-events: none;
     }
     #c {
         width: 100%;