From 155896a851f2a1060454ff614b5fecde4a8dd016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:02:29 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend/HorizontalSwipe):=20=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=80=A7=E3=81=AE=E6=94=B9=E5=96=84=20(#13038)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update swipe thresholds and touch-action * スワイプ中にPullToRefreshが反応しないように * 横スワイプに関与する可能性のある要素がある場合はスワイプを発火しないように * update threshold * isSwipingを外部化 * rename --------- Co-authored-by: syuilo --- .../src/components/MkHorizontalSwipe.vue | 34 ++++++++++++++++--- .../src/components/MkPullToRefresh.vue | 7 +++- packages/frontend/src/scripts/touch.ts | 4 +++ 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/MkHorizontalSwipe.vue b/packages/frontend/src/components/MkHorizontalSwipe.vue index 67d32c505..bf7d43fd4 100644 --- a/packages/frontend/src/components/MkHorizontalSwipe.vue +++ b/packages/frontend/src/components/MkHorizontalSwipe.vue @@ -25,11 +25,11 @@ SPDX-License-Identifier: AGPL-3.0-only -