Revert "chore: use meta key to zoom on darwin"

This reverts commit 946e00114e.
pull/6850/head
Konstantinos Kaloutas 2022-09-30 12:55:04 +03:00
parent 9b3891e936
commit 287a360a30
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import Vec from '@tldraw/vec'
import type { Handler, WebKitGestureEvent } from '@use-gesture/core/types'
import { useGesture } from '@use-gesture/react'
import * as React from 'react'
import { TLTargetType, TLViewport, isDarwin } from '@tldraw/core'
import { TLTargetType, TLViewport } from '@tldraw/core'
import { useRendererContext } from './useRendererContext'
type PinchHandler = Handler<
@ -99,7 +99,6 @@ export function useGestureEvents(ref: React.RefObject<HTMLDivElement>) {
max: TLViewport.maxZoom,
min: TLViewport.minZoom,
}),
modifierKey: isDarwin() ? 'metaKey' : 'ctrlKey',
},
})
}