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