소스 검색

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