summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-31 10:23:29 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-31 10:23:29 +0900
commitb491432daa2b50acd75bc0b7b4b995aa67318c4a (patch)
treefd0fae6386e2392152df999129afed91e6286ec5 /packages
parentenhance(frontend): アイコンのスクロール追従を無効化する際... (diff)
downloadmisskey-b491432daa2b50acd75bc0b7b4b995aa67318c4a.tar.gz
misskey-b491432daa2b50acd75bc0b7b4b995aa67318c4a.tar.bz2
misskey-b491432daa2b50acd75bc0b7b4b995aa67318c4a.zip
fix(frontend): タッチ操作時にマウスホバー時のユーザープレビューが開くことがある問題を修正
Fix #16464
Diffstat (limited to 'packages')
-rw-r--r--packages/frontend/src/directives/user-preview.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/directives/user-preview.ts b/packages/frontend/src/directives/user-preview.ts
index 94deea82c7..b11ef8f088 100644
--- a/packages/frontend/src/directives/user-preview.ts
+++ b/packages/frontend/src/directives/user-preview.ts
@@ -6,6 +6,7 @@
import { defineAsyncComponent, ref } from 'vue';
import type { Directive } from 'vue';
import { popup } from '@/os.js';
+import { isTouchUsing } from '@/utility/touch.js';
export class UserPreview {
private el;
@@ -107,6 +108,7 @@ export class UserPreview {
export default {
mounted(el: HTMLElement, binding, vn) {
if (binding.value == null) return;
+ if (isTouchUsing) return;
// TODO: 新たにプロパティを作るのをやめMapを使う
// ただメモリ的には↓の方が省メモリかもしれないので検討中