Skip to content

Commit

Permalink
add: controls to description
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfyw committed Apr 12, 2023
1 parent b4341a2 commit 69a6515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Canvas/EventController.tsx
Expand Up @@ -69,9 +69,9 @@ const EventController: FC<EventControllerProps> = props => {
const handleKeypress = (e: KeyboardEvent) => {
if (e.key === 'Spacebar' || e.key === ' ') {
props.setAnimPaused(!props.animPaused)
} else if (e.key === '-') {
} else if (e.key === '-' || e.key === '_') {
props.setScaling(props.scaling + (-5 * 0.033 * props.scaling))
} else if (e.key === '=') {
} else if (e.key === '=' || e.key === '+') {
props.setScaling(props.scaling + (5 * 0.033 * props.scaling))
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/Menu/DrawerMenu.tsx
Expand Up @@ -179,6 +179,9 @@ const DrawerMenu: FC<DrawerMenuProps> = props => {
<span>
Pause animation: <Kbd>space</Kbd>
</span>
<span>
Zoom in/out: <Kbd>+</Kbd>/<Kbd>-</Kbd>
</span>
</VStack>

</Stack>
Expand Down

0 comments on commit 69a6515

Please sign in to comment.