preview speed control
This commit is contained in:
@@ -14,6 +14,7 @@ export const app = $state({
|
||||
videoUrl: null as string | null,
|
||||
videoName: null as string | null,
|
||||
timelineWidth: 800,
|
||||
previewSpeed: 1,
|
||||
});
|
||||
|
||||
let markerCounter = 0;
|
||||
@@ -52,6 +53,10 @@ export function setFps(value: number) {
|
||||
app.fps = value;
|
||||
}
|
||||
|
||||
export function setPreviewSpeed(value: number) {
|
||||
app.previewSpeed = Math.max(0.25, Math.min(2, value));
|
||||
}
|
||||
|
||||
export function setPixelsPerSecond(value: number) {
|
||||
app.pixelsPerSecond = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user