Fix reversed zoom in and zoom out (#956)

Fixes #954
This commit is contained in:
turkerdev 2022-09-07 15:07:07 +03:00 committed by GitHub
parent 1130525fdf
commit 590aef15ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -307,7 +307,7 @@ export function useKeyboardShortcuts(ref: React.RefObject<HTMLDivElement>) {
// Camera
useHotkeys(
'ctrl+=,⌘+=,ctrl+num_subtract,⌘+num_subtract',
'ctrl+=,⌘+=,ctrl+num_add,⌘+num_add',
(e) => {
if (!canHandleEvent(true)) return
app.zoomIn()
@ -318,7 +318,7 @@ export function useKeyboardShortcuts(ref: React.RefObject<HTMLDivElement>) {
)
useHotkeys(
'ctrl+-,⌘+-,ctrl+num_add,⌘+num_add',
'ctrl+-,⌘+-,ctrl+num_subtract,⌘+num_subtract',
(e) => {
if (!canHandleEvent(true)) return