feat(editor): ✨ Zoom in/out
This commit is contained in:
@ -68,8 +68,10 @@ export const useDragDistance = ({
|
||||
distanceTolerance?: number
|
||||
isDisabled: boolean
|
||||
}) => {
|
||||
const mouseDownPosition =
|
||||
useRef<{ absolute: Coordinates; relative: Coordinates }>()
|
||||
const mouseDownPosition = useRef<{
|
||||
absolute: Coordinates
|
||||
relative: Coordinates
|
||||
}>()
|
||||
|
||||
const handleMouseUp = () => {
|
||||
if (mouseDownPosition) mouseDownPosition.current = undefined
|
||||
|
@ -21,7 +21,7 @@ const userContext = createContext<{
|
||||
hasUnsavedChanges: boolean
|
||||
isOAuthProvider: boolean
|
||||
updateUser: (newUser: Partial<User>) => void
|
||||
saveUser: (newUser?: Partial<User>) => void
|
||||
saveUser: (newUser?: Partial<User>) => Promise<void>
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
//@ts-ignore
|
||||
}>({})
|
||||
|
Reference in New Issue
Block a user