Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: cannot input camera altitude less than 500 with camera pane (#339)
Browse files Browse the repository at this point in the history
* feat: remove minimun value limit

* style: correct css property name
  • Loading branch information
airslice committed Oct 31, 2022
1 parent 7dd2b35 commit 76a1696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -106,7 +106,7 @@ export default ({
);

const updateAltitude = useCallback(
(fov: number) => updateCamera({ height: Math.max(500, Math.min(fov, 10 ** 10)) }),
(altitude: number) => updateCamera({ height: Math.min(altitude, 10 ** 10) }),
[updateCamera],
);

Expand Down
Expand Up @@ -266,7 +266,7 @@ const Popup = styled.ul<{ open: boolean }>`

const FormGroup = styled.div`
display: flex;
align-item: center;
align-items: center;
`;

const FormIcon = styled.div`
Expand Down

0 comments on commit 76a1696

Please sign in to comment.