mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 21:54:09 +00:00
fix: correct offset direction in expected time calculations
This commit is contained in:
committed by
Carlos Valente
parent
4bf74d86b3
commit
111a1f95ba
@@ -183,7 +183,7 @@ export function getUpcomingEvents(events: PlayableEvent[], selectedId: MaybeStri
|
||||
* Utility function calculates time to start
|
||||
*/
|
||||
export function getTimeToStart(now: number, start: number, delay: number, offset: number): number {
|
||||
return start + delay - now - offset;
|
||||
return start + delay - now + offset;
|
||||
}
|
||||
|
||||
interface TimelineLayout {
|
||||
|
||||
Reference in New Issue
Block a user