From 9b6ee20b07eac0bdf46ddc8db7a8e5e05c387872 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Wed, 15 Jul 2026 12:48:23 +0000 Subject: [PATCH] Don't scroll to the history when a chart day is tapped Selecting the day (and the new selected-day highlight) is enough; the scroll jump lost your place in the charts. --- src/app.js | 2 -- src/changelog.json | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index 79f6716..509e8b0 100644 --- a/src/app.js +++ b/src/app.js @@ -964,8 +964,6 @@ b.addEventListener("click", () => { dayPicker.value = b.dataset.day; render(); - const hist = document.querySelector(".history"); - if (hist) hist.scrollIntoView({ behavior: "smooth", block: "start" }); }); }); } diff --git a/src/changelog.json b/src/changelog.json index 7eb581b..9f301f5 100644 --- a/src/changelog.json +++ b/src/changelog.json @@ -1,4 +1,5 @@ [ + { "date": "2026-07-15", "text": "Tapping a day in a chart selects it without jumping down to the history" }, { "date": "2026-07-15", "text": "Meals with an amount logged show their grams in the day's history" }, { "date": "2026-07-15", "text": "Every 1-hour gridline on the sleep charts now shows its hour mark" }, { "date": "2026-07-15", "text": "The Sleep chart in the last-N-days card now has 1-hour gridlines too" },