Browse Source

Editor: Fix camera transform when using select in Firefox. (#26717)

Michael Herzog 1 year ago
parent
commit
0dbaea7083
1 changed files with 6 additions and 0 deletions
  1. 6 0
      editor/js/libs/ui.js

+ 6 - 0
editor/js/libs/ui.js

@@ -357,6 +357,12 @@ class UISelect extends UIElement {
 
 
 		this.dom.setAttribute( 'autocomplete', 'off' );
 		this.dom.setAttribute( 'autocomplete', 'off' );
 
 
+		this.dom.addEventListener( 'pointerdown', function ( event ) {
+
+			event.stopPropagation();
+
+		} );
+
 	}
 	}
 
 
 	setMultiple( boolean ) {
 	setMultiple( boolean ) {