From f139ab79e2e51d947168ff507c4ae772cd8d1c1b Mon Sep 17 00:00:00 2001 From: j Date: Fri, 16 Feb 2024 10:18:12 +0000 Subject: [PATCH] fix getClip --- app/static/js/edits.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/static/js/edits.js b/app/static/js/edits.js index 454a612..d08a392 100644 --- a/app/static/js/edits.js +++ b/app/static/js/edits.js @@ -95,8 +95,11 @@ function getClip(edit, position) { let pos = 0 edit.clips.forEach(function(clip) { if (clip.position < position && clip.position + clip.duration > position) { - response.item = clip.id + response.item = clip.item response.position = position - clip.position + if (clip['in']) { + response.position += clip['in'] + } } }); return response