From 59444dc90464f8e48e7a9bcc0d38cb11ecae6c1d Mon Sep 17 00:00:00 2001 From: Alphons Joseph <93847055+Crazypersonalph@users.noreply.github.com> Date: Tue, 11 Feb 2025 19:03:47 +0800 Subject: [PATCH] patch timetable not being centred upon zoom --- src/SEQTA.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 027e6d87..28c633fa 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -848,6 +848,8 @@ function handleTimetableZoom(): void { (time as HTMLElement).style.height = `${timeHeight}px`; }); } + + entries[Math.round((entries.length - 1) / 2)].scrollIntoView({ behavior: 'instant', block: 'center' }); }; zoomIn.addEventListener('click', () => {