mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
patch timetable not being centred upon zoom
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user