Browse Source

Improved draggable cubes example a bit more.

Mr.doob 14 years ago
parent
commit
1bdf3daec9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/webgl_interactive_draggablecubes.html

+ 4 - 0
examples/webgl_interactive_draggablecubes.html

@@ -185,6 +185,8 @@
 					var intersects = ray.intersectObject( plane );
 					var intersects = ray.intersectObject( plane );
 					offset.copy( intersects[ 0 ].point ).subSelf( plane.position );
 					offset.copy( intersects[ 0 ].point ).subSelf( plane.position );
 
 
+					container.style.cursor = 'move';
+
 				}
 				}
 			}
 			}
 
 
@@ -194,6 +196,8 @@
 
 
 				SELECTED = null;
 				SELECTED = null;
 
 
+				container.style.cursor = 'auto';
+
 			}
 			}
 
 
 			//
 			//