diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/editor.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/editor.tsx b/pages/editor.tsx index 7a7a52b..8f0637b 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -166,6 +166,10 @@ function TimelineEditor(props: { var frame = Math.max(0, Math.round(getFrameAtOffset(x - 240, timelineZoom)) - 1); setFrame(frame); scrubberSpring.start({ frame }); + if(props.player.player) { + var player = props.player.player; + player.currentTime = props.player.frameToTimestamp(frame + 1); + } }, { domTarget: scrubberDragRef, eventOptions: { passive: false } }); return <> |