Skip to content

Commit

Permalink
Editor: Improved UINumber and UIInteger behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 21, 2024
1 parent 2a66fb9 commit f9a97ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/js/libs/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ class UINumber extends UIElement {

function onMouseDown( event ) {

if ( document.activeElement === scope.dom ) return;

event.preventDefault();

distance = 0;
Expand Down Expand Up @@ -821,6 +823,8 @@ class UIInteger extends UIElement {

function onMouseDown( event ) {

if ( document.activeElement === scope.dom ) return;

event.preventDefault();

distance = 0;
Expand Down

0 comments on commit f9a97ef

Please sign in to comment.