Skip to content

Commit

Permalink
minor changes for expand timestamp seting startime of 1st seg = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed Dec 20, 2024
1 parent 2c500f5 commit 5457e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/subtitleUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export const onExpandTimeline = (id, vo=false) => {
const copySub = [...subtitles];

if(id === 0 && copySub.length > 1){
copySub[id].start_time = DT.d2t(0);
// copySub[id].start_time = DT.d2t(0);
copySub[id].end_time = DT.d2t(DT.t2d(copySub[id+1].start_time)-0.2);
}else if(id+1 === copySub.length){
copySub[id].start_time = DT.d2t(DT.t2d(copySub[id-1].end_time)+0.2)
Expand Down

0 comments on commit 5457e1f

Please sign in to comment.