Skip to content

Commit

Permalink
Editor: Made UI non-selectable. Thanks Google doodle.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Oct 15, 2012
1 parent ec0d95f commit dcc7887
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor/js/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit dcc7887

Please sign in to comment.