summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-03-02 16:40:41 +0100
committerMaze Winther <mazewinther@gmail.com>2026-03-02 16:40:41 +0100
commit565d2595da3ab23c39b5cd5fdcacdf676ca0e572 (patch)
tree1bdef90e11a32d985c34ab4e781a7fdeb2b37d86 /apps/web/src/components/editor
parenta526066b61f18b082adf6faeaf3e19f3d13cd77d (diff)
downloadopencut-565d2595da3ab23c39b5cd5fdcacdf676ca0e572.tar.gz
clcik to seek on keyframes
Diffstat (limited to 'apps/web/src/components/editor')
-rw-r--r--apps/web/src/components/editor/panels/timeline/timeline-element.tsx16
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx b/apps/web/src/components/editor/panels/timeline/timeline-element.tsx
index f4258aa0..3ce2cd14 100644
--- a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx
+++ b/apps/web/src/components/editor/panels/timeline/timeline-element.tsx
@@ -259,7 +259,7 @@ export function TimelineElement({
handleKeyframeMouseDown,
handleKeyframeClick,
getVisualOffsetPx,
- } = useKeyframeDrag({ zoomLevel, element });
+ } = useKeyframeDrag({ zoomLevel, element, displayedStartTime });
const handleRevealInMedia = ({ event }: { event: React.MouseEvent }) => {
event.stopPropagation();
if (hasMediaId(element)) {
@@ -516,6 +516,7 @@ function KeyframeIndicators({
event: React.MouseEvent;
keyframes: SelectedKeyframeRef[];
orderedKeyframes: SelectedKeyframeRef[];
+ indicatorTime: number;
}) => void;
getVisualOffsetPx: (params: {
indicatorTime: number;
@@ -554,12 +555,13 @@ function KeyframeIndicators({
onMouseDown={(event) =>
onKeyframeMouseDown({ event, keyframes: indicator.keyframes })
}
- onClick={(event) =>
- onKeyframeClick({
- event,
- keyframes: indicator.keyframes,
- orderedKeyframes,
- })
+ onClick={(event) =>
+ onKeyframeClick({
+ event,
+ keyframes: indicator.keyframes,
+ orderedKeyframes,
+ indicatorTime: indicator.time,
+ })
}
aria-label="Select keyframe"
>