浏览代码

Merge pull request #17004 from WestLangley/dev_user_select

CSS: make info and dat.gui text non-selectable
Mr.doob 6 年之前
父节点
当前提交
78b74d23c4
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      examples/main.css

+ 8 - 0
examples/main.css

@@ -32,9 +32,17 @@ canvas {
 	padding: 10px;
 	padding: 10px;
 	box-sizing: border-box;
 	box-sizing: border-box;
 	text-align: center;
 	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 */
 	z-index: 1; /* TODO Solve this in HTML */
 }
 }
 
 
 .dg.ac {
 .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 */
 	z-index: 2 !important; /* TODO Solve this in HTML */
 }
 }