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