chore: remove pointermove listener

This commit is contained in:
anatawa12 2025-02-03 15:50:27 +09:00 committed by GitHub
parent b299046c1b
commit b4b7d11cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -209,12 +209,11 @@ function pointerEvent(ev: PointerEvent) {
}
document.addEventListener('pointerdown', pointerEvent);
document.addEventListener('pointermove', pointerEvent);
document.addEventListener('pointerup', pointerEvent);
function onWheel(ev: WheelEvent) {
// WheelEvent
snapScroll.value = false;
if (ev.deltaX === 0 && columnsEl.value != null) {
snapScroll.value = false;
columnsEl.value.scrollLeft += ev.deltaY;
}
}