Browse Source

Merge pull request #11514 from spite/fix-imagebitmap-example

Fix imagebitmap example
Mr.doob 8 năm trước cách đây
mục cha
commit
ceb8807134
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      examples/webgl_loader_imagebitmap.html

+ 3 - 1
examples/webgl_loader_imagebitmap.html

@@ -39,9 +39,11 @@
 				border: 1px solid white;
 				cursor: pointer;
 				white-space: nowrap;
+				user-select: none;
 			}
 			.actions span:hover{
 				color: red;
+				border-color: red;
 			}
 			.actions span:active{
 				color: black;
@@ -151,7 +153,7 @@
 				group.add( new THREE.GridHelper( 4, 12 ) );
 
 				cubes = new THREE.Group();
-				scene.add( cubes );
+				group.add( cubes );
 
 				addImageBitmap();
 				addImage();