fix: make @wheel and @touchstart event passive

This commit is contained in:
Yann C
2023-03-29 11:26:49 +02:00
committed by Braks
parent 1b740b435b
commit 330a3b7a4f
2 changed files with 2 additions and 2 deletions
@@ -101,7 +101,7 @@ export default {
}, },
]" ]"
@mousedown="handlePointerDown" @mousedown="handlePointerDown"
@touchstart="handlePointerDown" @touchstart.passive="handlePointerDown"
@click="handleClick" @click="handleClick"
> >
<slot :id="id" /> <slot :id="id" />
+1 -1
View File
@@ -227,7 +227,7 @@ export default {
:class="[{ selection: isSelecting }]" :class="[{ selection: isSelecting }]"
@click="onClick" @click="onClick"
@contextmenu="onContextMenu" @contextmenu="onContextMenu"
@wheel="onWheel" @wheel.passive="onWheel"
@mouseenter="onMouseEnter" @mouseenter="onMouseEnter"
@mousedown="onMouseDown" @mousedown="onMouseDown"
@mousemove="onMouseMove" @mousemove="onMouseMove"