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:
@@ -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" });
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user