Ver código fonte

Merge pull request #17004 from WestLangley/dev_user_select

CSS: make info and dat.gui text non-selectable
Mr.doob 6 anos atrás
pai
commit
78b74d23c4
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      examples/main.css

+ 8 - 0
examples/main.css

@@ -32,9 +32,17 @@ canvas {
 	padding: 10px;
 	box-sizing: border-box;
 	text-align: center;
+	-moz-user-select: none;
+	-webkit-user-select: none;
+	-ms-user-select: none;
+	user-select: none;
 	z-index: 1; /* TODO Solve this in HTML */
 }
 
 .dg.ac {
+	-moz-user-select: none;
+	-webkit-user-select: none;
+	-ms-user-select: none;
+	user-select: none;
 	z-index: 2 !important; /* TODO Solve this in HTML */
 }