diff --git a/editor/src/uuiui/inputs/number-input.tsx b/editor/src/uuiui/inputs/number-input.tsx index aeb9d054fee5..3d5b2afc656e 100644 --- a/editor/src/uuiui/inputs/number-input.tsx +++ b/editor/src/uuiui/inputs/number-input.tsx @@ -383,9 +383,7 @@ export const NumberInput = React.memo( const cancelPointerLock = React.useCallback( (revertChanges: 'revert-nothing' | 'revert-changes') => { - if (document.pointerLockElement === pointerOriginRef.current) { - document.exitPointerLock() - } + document.exitPointerLock() if ( revertChanges === 'revert-changes' && onSubmitValue != null &&