chore: use passive pointerdown event

This commit is contained in:
anatawa12 2025-04-02 09:32:05 +09:00
parent 73fa33662d
commit daf905ea19
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function pointerEvent(ev: PointerEvent) {
snapScroll.value = ev.pointerType === 'touch';
}
window.document.addEventListener('pointerdown', pointerEvent);
window.document.addEventListener('pointerdown', pointerEvent, { passive: true });
function onWheel(ev: WheelEvent) {
// WheelEvent