chore: use passive pointerdown event
This commit is contained in:
parent
73fa33662d
commit
daf905ea19
|
@ -225,7 +225,7 @@ function pointerEvent(ev: PointerEvent) {
|
||||||
snapScroll.value = ev.pointerType === 'touch';
|
snapScroll.value = ev.pointerType === 'touch';
|
||||||
}
|
}
|
||||||
|
|
||||||
window.document.addEventListener('pointerdown', pointerEvent);
|
window.document.addEventListener('pointerdown', pointerEvent, { passive: true });
|
||||||
|
|
||||||
function onWheel(ev: WheelEvent) {
|
function onWheel(ev: WheelEvent) {
|
||||||
// WheelEvent はマウスからしか発火しないのでスナップスクロールは無効化する
|
// WheelEvent はマウスからしか発火しないのでスナップスクロールは無効化する
|
||||||
|
|
Loading…
Reference in New Issue