Преглед на файлове

prevent save-image on long press

Gregg Tavares преди 6 години
родител
ревизия
65be6b7d29
променени са 3 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. 5 0
      threejs/threejs-game-conga-line-w-notes.html
  2. 5 0
      threejs/threejs-game-conga-line.html
  3. 5 0
      threejs/threejs-game-player-input.html

+ 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%;