summaryrefslogtreecommitdiff
path: root/apps/web/src/core/managers
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/core/managers')
-rw-r--r--apps/web/src/core/managers/playback-manager.ts20
-rw-r--r--apps/web/src/core/managers/timeline-manager.ts2
2 files changed, 5 insertions, 17 deletions
diff --git a/apps/web/src/core/managers/playback-manager.ts b/apps/web/src/core/managers/playback-manager.ts
index 8275344f..9b9d26bc 100644
--- a/apps/web/src/core/managers/playback-manager.ts
+++ b/apps/web/src/core/managers/playback-manager.ts
@@ -75,7 +75,7 @@ export class PlaybackManager {
this.playbackStartTime = this.currentTime;
}
this.notify();
- this.dispatchSeekEvent(this.currentTime);
+ this.notifySeek(this.currentTime);
}
setVolume({ volume }: { volume: number }): void {
@@ -227,9 +227,9 @@ export class PlaybackManager {
this.pause();
this.currentTime = maxTime;
this.notify();
- this.notifySeek(maxTime);
- this.dispatchSeekEvent(maxTime);
- return;
+ this.notifySeek(maxTime);
+ this.dispatchSeekEvent(maxTime);
+ return;
}
this.currentTime = newTime;
@@ -247,23 +247,11 @@ export class PlaybackManager {
if (typeof window === "undefined") {
return;
}
-
- window.dispatchEvent(
- new CustomEvent("playback-seek", {
- detail: { time },
- }),
- );
}
private dispatchUpdateEvent(time: MediaTime): void {
if (typeof window === "undefined") {
return;
}
-
- window.dispatchEvent(
- new CustomEvent("playback-update", {
- detail: { time },
- }),
- );
}
}
diff --git a/apps/web/src/core/managers/timeline-manager.ts b/apps/web/src/core/managers/timeline-manager.ts
index 3c6b7599..8fbfdb08 100644
--- a/apps/web/src/core/managers/timeline-manager.ts
+++ b/apps/web/src/core/managers/timeline-manager.ts
@@ -25,9 +25,9 @@ import type {
} from "@/animation/types";
import {
getElementLocalTime,
- resolveAnimationTarget,
resolveAnimationPathValueAtTime,
} from "@/animation";
+import { resolveAnimationTarget } from "@/timeline/animation-targets";
import { BatchCommand } from "@/commands";
import {
AddTrackCommand,