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