dev #727

Merged
ysCha merged 14 commits from dev into prd-deploy 2026-03-25 18:24:52 +09:00
Showing only changes of commit f3bddbea75 - Show all commits

View File

@ -454,13 +454,9 @@ export const Orientation = forwardRef((props, ref) => {
value={inputCompasDeg}
readOnly={!hasAnglePassivity}
onChange={(value) => {
// Convert to number and ensure it's within -180 to 180 range
const numValue = parseInt(value, 10);
if (!isNaN(numValue)) {
const clampedValue = Math.min(180, Math.max(-180, numValue));
setInputCompasDeg(String(clampedValue));
} else {
setInputCompasDeg(value);
setInputCompasDeg(Math.min(180, Math.max(-180, numValue)));
}
}}
disableKeypad={disableKeypad}