|
@@ -34,6 +34,8 @@ export function useZoomEvents<T extends HTMLElement>(zoom: number, ref: React.Re
|
34
|
34
|
useGesture(
|
35
|
35
|
{
|
36
|
36
|
onWheel: ({ delta, event: e }) => {
|
|
37
|
+ e.preventDefault()
|
|
38
|
+
|
37
|
39
|
if (e.altKey && e.buttons === 0) {
|
38
|
40
|
const point = inputs.pointer?.point ?? [bounds.width / 2, bounds.height / 2]
|
39
|
41
|
|
|
@@ -43,8 +45,6 @@ export function useZoomEvents<T extends HTMLElement>(zoom: number, ref: React.Re
|
43
|
45
|
return
|
44
|
46
|
}
|
45
|
47
|
|
46
|
|
- e.preventDefault()
|
47
|
|
-
|
48
|
48
|
if (inputs.isPinching) return
|
49
|
49
|
|
50
|
50
|
if (Vec.isEqual(delta, [0, 0])) return
|