From 7e4cd767622e3e1a09e76770ce800f4a541cf0e8 Mon Sep 17 00:00:00 2001 From: Zaka <149817565+ZakaHaceCosas@users.noreply.github.com> Date: Fri, 15 Aug 2025 23:01:18 +0200 Subject: feat: add an input so the user can go to a specific timestamp (#530) * feat: add an input so the user can go to a specific timestamp * fix: use TimeCode type for EditableTimecodeProps * cleanup --------- Co-authored-by: Maze Winther --- apps/web/src/hooks/use-editor-actions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/web/src/hooks/use-editor-actions.ts') diff --git a/apps/web/src/hooks/use-editor-actions.ts b/apps/web/src/hooks/use-editor-actions.ts index bfe9a7b9..81500416 100644 --- a/apps/web/src/hooks/use-editor-actions.ts +++ b/apps/web/src/hooks/use-editor-actions.ts @@ -4,7 +4,7 @@ import { useEffect } from "react"; import { useActionHandler } from "@/constants/actions"; import { useTimelineStore } from "@/stores/timeline-store"; import { usePlaybackStore } from "@/stores/playback-store"; -import { useProjectStore } from "@/stores/project-store"; +import { DEFAULT_FPS, useProjectStore } from "@/stores/project-store"; import { toast } from "sonner"; export function useEditorActions() { @@ -66,7 +66,7 @@ export function useEditorActions() { useActionHandler( "frame-step-forward", () => { - const projectFps = activeProject?.fps || 30; + const projectFps = activeProject?.fps || DEFAULT_FPS; seek(Math.min(duration, currentTime + 1 / projectFps)); }, undefined @@ -75,7 +75,7 @@ export function useEditorActions() { useActionHandler( "frame-step-backward", () => { - const projectFps = activeProject?.fps || 30; + const projectFps = activeProject?.fps || DEFAULT_FPS; seek(Math.max(0, currentTime - 1 / projectFps)); }, undefined -- cgit v1.3.1