Skip to content

Commit e6abf8d

Browse files
committed
fix: sort leftRightPercentArray values
1 parent 31430d2 commit e6abf8d

File tree

1 file changed

+1
-0
lines changed
  • src/components/widgets/VideoExplorer/Frame

1 file changed

+1
-0
lines changed

src/components/widgets/VideoExplorer/Frame/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Frame extends React.Component {
3030
switch(subtitle.format){
3131
case 'leftRightPercentArray':
3232
value = value
33+
.sort((a, b) => a - b)
3334
.map(v => {
3435
return `${v > 0 ? 'right' : 'left'}: ${Math.abs(parseInt(v * 100))}/100`;
3536
})

0 commit comments

Comments
 (0)