diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-02-07 20:02:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 20:02:29 +0900 |
| commit | 155896a851f2a1060454ff614b5fecde4a8dd016 (patch) | |
| tree | 5c435d0a23537f2d51a079b95ef89e4f61a27901 /packages/frontend/src/scripts | |
| parent | 正しい 2024.2.0-beta.10 改版手順? (#13173) (diff) | |
| download | sharkey-155896a851f2a1060454ff614b5fecde4a8dd016.tar.gz sharkey-155896a851f2a1060454ff614b5fecde4a8dd016.tar.bz2 sharkey-155896a851f2a1060454ff614b5fecde4a8dd016.zip | |
enhance(frontend/HorizontalSwipe): 操作性の改善 (#13038)
* Update swipe thresholds and touch-action
* スワイプ中にPullToRefreshが反応しないように
* 横スワイプに関与する可能性のある要素がある場合はスワイプを発火しないように
* update threshold
* isSwipingを外部化
* rename
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/touch.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/touch.ts b/packages/frontend/src/scripts/touch.ts index 05f379e4aa..4fd7d500c4 100644 --- a/packages/frontend/src/scripts/touch.ts +++ b/packages/frontend/src/scripts/touch.ts @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +import { ref } from 'vue'; import { deviceKind } from '@/scripts/device-kind.js'; const isTouchSupported = 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0; @@ -16,3 +17,6 @@ if (isTouchSupported && !isTouchUsing) { isTouchUsing = true; }, { passive: true }); } + +/** (MkHorizontalSwipe) 横スワイプ中か? */ +export const isHorizontalSwipeSwiping = ref(false); |