Skip to content

Commit

Permalink
Shift the synchronized lyrics slightly ahead
Browse files Browse the repository at this point in the history
This makes it more readable and easier to follow.
  • Loading branch information
TomasHubelbauer committed Jun 3, 2024
1 parent bf238f1 commit 01c967a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ electron.app.on('ready', async () => {
}
case 'LINE_SYNCED': {
{
const index = lyrics.lines.findIndex(line => line.startTimeMs >= position * 1000);
const index = lyrics.lines.findIndex(line => line.startTimeMs >= position * 1000 + 100);
const _line = lyrics.lines[index - 1];
if (_line !== line) {
line = _line;
Expand Down

0 comments on commit 01c967a

Please sign in to comment.