diff --git a/src/devtool/jsx/controllers.jsx b/src/devtool/jsx/controllers.jsx index a8cd29f..d9f5e04 100644 --- a/src/devtool/jsx/controllers.jsx +++ b/src/devtool/jsx/controllers.jsx @@ -235,6 +235,7 @@ export default function ControllerPanel({ deviceKey }) { '.png' } className="control-icon" + decoding="async" /> {controlName} diff --git a/src/devtool/jsx/hands.jsx b/src/devtool/jsx/hands.jsx index 7e8ec3b..ce7de17 100644 --- a/src/devtool/jsx/hands.jsx +++ b/src/devtool/jsx/hands.jsx @@ -46,6 +46,7 @@ export default function HandPanel({ deviceKey }) { {strings.displayName} @@ -82,7 +83,7 @@ export default function HandPanel({ deviceKey }) { className="btn special-button" onClick={onPressAnalog} > - + Polyfill @@ -141,7 +142,7 @@ export default function HeadsetBar({ device }) { (showDropDown ? ' button-pressed' : '') } onClick={() => { - setShowDropDown(!showDropDown); + setShowDropDown((prevShowDropDown) => !prevShowDropDown); }} > = 0 ? '\xa0' : '') + value.toFixed(2); +} + export default function Inspector({ device, inputMode }) { const sceneContainerRef = React.useRef(); const meshWidthRef = React.useRef(); @@ -35,10 +41,6 @@ export default function Inspector({ device, inputMode }) { }); }); - function fixNumber(rawValue) { - const value = Number(rawValue); - return (value >= 0 ? '\xa0' : '') + value.toFixed(2); - } React.useEffect(() => { sceneContainerRef.current.appendChild(device.canvas); @@ -58,7 +60,7 @@ export default function Inspector({ device, inputMode }) {