Skip to content

Commit

Permalink
Merge pull request #160 from HyeokjinKang/editor-note-trace-timing-fix
Browse files Browse the repository at this point in the history
fix: 에디터의 노트 흔적 표시 타이밍을 조정합니다.
  • Loading branch information
HyeokjinKang authored Jun 6, 2024
2 parents 90d7e36 + ff4c625 commit ce7ce80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ const cntRender = () => {
const p = (1 - (renderNotes[i].beat - beats) / (5 / speed)) * 100;
const t = ((beats - renderNotes[i].beat) / renderNotes[i].duration) * 100;
const f = (1 - (renderNotes[i].beat + renderNotes[i].duration - beats) / (5 / speed)) * 100;
if (renderNotes[i].value != 2 && p < 100) validNote = i;
if (renderNotes[i].value != 2 && p < 101) validNote = i;
else if (renderNotes[i].value == 2 && f < 100) validNote = i;
if (i == validNote) drawNote(p, renderNotes[i].x, renderNotes[i].y, selectedCheck(0, i), renderNotes[i].value, renderNotes[i].direction, t, f);
else if (i + 3 >= validNote) {
Expand Down

0 comments on commit ce7ce80

Please sign in to comment.