Modify timeline to allow pan into past/future.

This commit is contained in:
Dermot Duffy committed 2023-04-08 12:51:10 -07:00
1 parent ecf954249d
commit b3bb56298a
6 files changed
+106 -73

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export class ViewMedia {
}
public includesTime(seek: Date): boolean {
const startTime = this.getStartTime();
const endTime = this.getEndTime();
const endTime = this.getEndTime() ?? startTime;
return !!startTime && !!endTime && seek >= startTime && seek <= endTime;
}