Skip to content

Commit

Permalink
Merge pull request #111 from xpadev-net/fix/fixed-comment-order
Browse files Browse the repository at this point in the history
[修正] ue/shitaコメントが前面に表示されてしまっていた不具合を修正
  • Loading branch information
xpadev-net authored Nov 19, 2024
2 parents 5e97b68 + 631a1bb commit c1e7746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ const processFixedComment = (
const posY = lazy ? -1 : getFixedPosY(comment, collision);
for (let j = 0; j < comment.long; j++) {
const vpos = comment.vpos + j;
if (timeline[vpos]?.includes(comment)) continue;
arrayPush(timeline, vpos, comment);
if (j > comment.long - 20) continue;
arrayPush(collision, vpos, comment);
Expand All @@ -631,7 +632,7 @@ const processMovableComment = (
for (let j = beforeVpos, n = comment.long + 125; j < n; j++) {
const vpos = comment.vpos + j;
const leftPos = getPosX(comment.comment, vpos);
if (timeline[vpos]?.includes(comment)) break;
if (timeline[vpos]?.includes(comment)) continue;
arrayPush(timeline, vpos, comment);
if (
leftPos + comment.width + config.collisionPadding >=
Expand Down

0 comments on commit c1e7746

Please sign in to comment.