From ef216d5ba73a02e143846768a09f6f6ec34a9c75 Mon Sep 17 00:00:00 2001 From: artem Date: Sat, 12 Sep 2026 21:26:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workouts/components/WorkoutItem.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/workouts/components/WorkoutItem.vue b/src/pages/workouts/components/WorkoutItem.vue index 69afbe9..b396029 100644 --- a/src/pages/workouts/components/WorkoutItem.vue +++ b/src/pages/workouts/components/WorkoutItem.vue @@ -434,7 +434,12 @@ const getUnit = (label: string) => { }; /** Computes "Данные участка" over every metric for the given point range. */ const computeAreaData = (start: number, end: number) => { - markedCoordinats.value = lineCoordinates.slice(start, end); + // The purple line on the map is shown only for a real sub-range; + // a full-range zoom keeps "Данные участка" but highlights nothing. + markedCoordinats.value = + start > 0 || end < lineCoordinates.length + ? lineCoordinates.slice(start, end) + : []; let avgData: AvgData = {}; for (const config of chartConfigs.value) { const values = config.data.datasets[0].data.slice(start, end); @@ -832,6 +837,7 @@ const buildChartOptions = ( activeSection.value = null; group.resetAll(); areaAvgData.value = {}; + markedCoordinats.value = []; return; } activeSection.value = sectionNo; @@ -1064,6 +1070,7 @@ const resetChartZoom = () => { group.resetAll(); activeSection.value = null; areaAvgData.value = {}; + markedCoordinats.value = []; };