Browse Source

Editor: Made UI non-selectable. Thanks Google doodle.

Mr.doob 12 years ago
parent
commit
dcc78875ec
1 changed files with 4 additions and 2 deletions
  1. 4 2
      editor/js/UI.js

+ 4 - 2
editor/js/UI.js

@@ -222,9 +222,11 @@ UI.Panel = function ( position ) {
 	dom.style.position = position || 'relative';
 	dom.style.marginBottom = '10px';
 
-	this.dom = dom;
+	dom.style.userSelect = 'none';
+	dom.style.WebkitUserSelect = 'none';
+	dom.style.MozUserSelect = 'none';
 
-	// this.dom.addEventListener( 'mousedown', function ( event ) { event.preventDefault() }, false );
+	this.dom = dom;
 
 	return this;
 };