pull/968/head
Steve Ruiz 2022-09-08 11:13:29 +01:00
rodzic b56a3a6982
commit 00e17b65f3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -37,7 +37,7 @@ export function useZoomEvents<T extends HTMLElement>(
const [x, y, z] = normalizeWheel(e)
// alt+scroll or ctrl+scroll = zoom
if ((e.altKey || e.ctrlKey || e.metaKey) && e.buttons === 1) {
if ((e.altKey || e.ctrlKey || e.metaKey) && e.buttons === 0) {
const point = inputs.pointer?.point ?? [bounds.width / 2, bounds.height / 2]
const delta = [...point, z * 0.618]
const info = inputs.pan(delta, e)