Browse Source

Editor: Improved UINumber and UIInteger behavior.

Mr.doob 1 year ago
parent
commit
f9a97ef781
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/js/libs/ui.js

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

@@ -553,6 +553,8 @@ class UINumber extends UIElement {
 
 		function onMouseDown( event ) {
 
+			if ( document.activeElement === scope.dom ) return;
+
 			event.preventDefault();
 
 			distance = 0;
@@ -821,6 +823,8 @@ class UIInteger extends UIElement {
 
 		function onMouseDown( event ) {
 
+			if ( document.activeElement === scope.dom ) return;
+
 			event.preventDefault();
 
 			distance = 0;