수동으로 방위설정 안되던 버그 수정
This commit is contained in:
parent
4c219ddce9
commit
29ccf72c5e
@ -175,15 +175,15 @@ export const Orientation = forwardRef((props, ref) => {
|
||||
return
|
||||
}
|
||||
if (e === '0-') {
|
||||
setCompasDeg('-0')
|
||||
setInputCompasDeg('-0')
|
||||
return
|
||||
}
|
||||
if (Number(e) >= -180 && Number(e) <= 180) {
|
||||
if (numberCheck(Number(e))) {
|
||||
setCompasDeg(Number(e))
|
||||
setInputCompasDeg(Number(e))
|
||||
}
|
||||
} else {
|
||||
setCompasDeg(compasDeg)
|
||||
setInputCompasDeg(compasDeg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user