Update getDanmuTop.js

This commit is contained in:
Harvey Zack authored and GitHub committed 2019-05-04 18:40:53 +08:00
1 parent afcb601c84
commit ffd7a38b35
1 file changed
+1 -1
@@ -76,7 +76,7 @@ export default function getDanmuTop(ins, danmu) {
const top = danmuData.top - playerData.top;
const left = danmuData.left - playerData.left;
const right = playerData.width - left - width;
return { top, left, height, width, right, item };
return { top, left, height, width, right };
})
.sort((prev, next) => {
return prev.top - next.top;