Update MkPullToRefresh.vue

This commit is contained in:
syuilo 2025-05-03 08:28:26 +09:00
parent 53948b5469
commit 4ee5811c2f
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ function moveEnd() {
}
}
function moving(event: TouchEvent | PointerEvent) {
function moving(event: TouchEvent | PointerEvent | MouseEvent) {
if (!isPullStart.value || isRefreshing.value || disabled) return;
if ((scrollEl?.scrollTop ?? 0) > SCROLL_STOP + pullDistance.value || isHorizontalSwipeSwiping.value) {
@ -206,7 +206,7 @@ function unregisterEventListenersForReadyToPull() {
rootEl.value.removeEventListener('mousedown', moveStartByMouse);
rootEl.value.removeEventListener('touchstart', moveStart);
rootEl.value.removeEventListener('touchmove', moving);
window.removeEventListener('pointermove', moving);
window.removeEventListener('mousemove', moving);
}
onMounted(() => {