From fdcb6a09a94e5ca99e8cc6785df3b1a6ae5b6d31 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:10:57 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E3=82=BF=E3=83=83=E3=83=81?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=99=82=E3=81=AB=E3=83=81=E3=83=A3=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=83=84=E3=83=BC=E3=83=AB=E3=83=81=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=81=8C=E6=B6=88=E3=81=88=E3=81=AA=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + packages/frontend/src/composables/use-chart-tooltip.ts | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b8cd9f070..5781623c93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fix: ドライブファイルの選択が不安定な問題を修正 - Fix: コントロールパネルのファイル欄などのデザインが崩れている問題を修正 - Fix: ユーザーの検索結果を追加で読み込むことができない問題を修正 +- Fix: タッチ操作時にチャートのツールチップが消えなくなる場合がある問題を修正 ### Server - Feat: 全てのチャットメッセージを既読にするAPIを追加(chat/read-all) diff --git a/packages/frontend/src/composables/use-chart-tooltip.ts b/packages/frontend/src/composables/use-chart-tooltip.ts index bba64fc6ee..a42f70ba02 100644 --- a/packages/frontend/src/composables/use-chart-tooltip.ts +++ b/packages/frontend/src/composables/use-chart-tooltip.ts @@ -25,7 +25,14 @@ export function useChartTooltip(opts: { position: 'top' | 'middle' } = { positio series: tooltipSeries, }, {}); + function windowTouchendHandler() { + tooltipShowing.value = false; + } + + window.addEventListener('touchend', windowTouchendHandler, { passive: true }); + onUnmounted(() => { + window.removeEventListener('touchend', windowTouchendHandler); disposeTooltipComponent(); });