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:
1 parent
3e3eee678e
commit
9b6ee20b07
2 files changed
+1
-2
No files matched your search
@@ -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