dev #872

Merged
ysCha merged 111 commits from dev into dev-deploy 2026-05-29 16:09:40 +09:00
Showing only changes of commit 56b4ee9563 - Show all commits

View File

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