2
0
Эх сурвалжийг харах

Editor: Improved UINumber and UIInteger behavior.

Mr.doob 1 жил өмнө
parent
commit
f9a97ef781
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  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;