Polish mobile media and sleep bars

This commit is contained in:
2026-05-19 16:34:25 +02:00
parent 36a15f3ed4
commit adaff22651
3 changed files with 23 additions and 17 deletions
+3 -3
View File
@@ -1440,10 +1440,10 @@
return;
}
if (deltaX < 0 && swipeContainer.dataset.nextDate) {
window.location.href = dashboardDayPath(swipeContainer.dataset.nextDate);
} else if (deltaX > 0 && swipeContainer.dataset.prevDate) {
if (deltaX < 0 && swipeContainer.dataset.prevDate) {
window.location.href = dashboardDayPath(swipeContainer.dataset.prevDate);
} else if (deltaX > 0 && swipeContainer.dataset.nextDate) {
window.location.href = dashboardDayPath(swipeContainer.dataset.nextDate);
}
};