fix getClip
This commit is contained in:
parent
85c4917fa7
commit
f139ab79e2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue