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.
This commit is contained in:
Alexander Heldt
2026-07-15 12:48:23 +00:00
parent 3e3eee678e
commit 9b6ee20b07
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -964,8 +964,6 @@
b.addEventListener("click", () => { b.addEventListener("click", () => {
dayPicker.value = b.dataset.day; dayPicker.value = b.dataset.day;
render(); render();
const hist = document.querySelector(".history");
if (hist) hist.scrollIntoView({ behavior: "smooth", block: "start" });
}); });
}); });
} }
+1
View File
@@ -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": "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": "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" }, { "date": "2026-07-15", "text": "The Sleep chart in the last-N-days card now has 1-hour gridlines too" },