Skip to content

Commit

Permalink
fix: rerender some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Nov 19, 2024
1 parent 5e97b68 commit 631a1bb
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 631a1bb

Please sign in to comment.