patch timetable not being centred upon zoom

This commit is contained in:
Alphons Joseph
2025-02-11 19:03:47 +08:00
parent d65bfa8c46
commit 59444dc904
+2
View File
@@ -848,6 +848,8 @@ function handleTimetableZoom(): void {
(time as HTMLElement).style.height = `${timeHeight}px`; (time as HTMLElement).style.height = `${timeHeight}px`;
}); });
} }
entries[Math.round((entries.length - 1) / 2)].scrollIntoView({ behavior: 'instant', block: 'center' });
}; };
zoomIn.addEventListener('click', () => { zoomIn.addEventListener('click', () => {