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

Commit

Permalink
Update src/components/molecules/Visualizer/Widget/Navigator/hooks.ts
Browse files Browse the repository at this point in the history
Co-authored-by: rot1024 <[email protected]>
  • Loading branch information
keiya01 and rot1024 committed Sep 27, 2022
1 parent 73d0389 commit f720e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/molecules/Visualizer/Widget/Navigator/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const useNavigator = ({ sceneProperty }: { sceneProperty: SceneProperty }
const ctx = useContext();
const camera = ctx?.reearth.camera;
const [degree, setDegree] = useState(0);
const [isOpenedHelp, setIsOpenedHelp] = useState(false);
const [isHelpOpened, setIsHelpOpened] = useState(false);
const orbitRadianRef = useRef(0);
const isMovingOrbit = useRef(false);
const cameraRotateRight = camera?.rotateRight;
Expand Down Expand Up @@ -38,7 +38,7 @@ export const useNavigator = ({ sceneProperty }: { sceneProperty: SceneProperty }
}
}, [camera, sceneProperty]);
const handleOnClickHelp = useCallback(() => {
setIsOpenedHelp(prev => !prev);
setIsHelpOpened(prev => !prev);
}, []);

const handleOnZoomIn = useCallback(() => {
Expand Down Expand Up @@ -76,7 +76,7 @@ export const useNavigator = ({ sceneProperty }: { sceneProperty: SceneProperty }

return {
degree,
isOpenedHelp, // TODO: This will be used to display help modal.
isHelpOpened, // TODO: This will be used to display help modal.
events: {
onRotate: handleOnRotate,
onStartOrbit: handleOnStartOrbit,
Expand Down

0 comments on commit f720e01

Please sign in to comment.