feat: 优化卡片滚动问题

This commit is contained in:
2026-05-27 12:51:17 +08:00
parent c9f93cfa7f
commit 134954335c
2 changed files with 41 additions and 1 deletions

View File

@@ -432,11 +432,15 @@ const finishSwipe = (step) => {
};
const handleTouchStart = (event) => {
if (!canSwipe.value || isAnimating.value || isRecycling.value) return;
if (!canSwipe.value || isAnimating.value) return;
const touch = event.touches?.[0] || event.changedTouches?.[0];
if (!touch) return;
clearRecycleTimer();
clearFillFadeTimer();
isRecycling.value = false;
fillFadeKey.value = "";
startX = touch.clientX;
startY = touch.clientY;
deltaX.value = 0;