Skip to content

Commit 097592b

Browse files
committed
fix: wordEnd eol
1 parent 0e093f9 commit 097592b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ wordEndBtn.addEventListener('click', () => {
378378
wordEl.dataset.endTime = audio.currentTime
379379
if (currentWordIndex + 1 >= lineEl.childElementCount) {
380380
// end of line
381-
updateSelection(item, 'active')
381+
updateSelection(itemsList[currentItemIndex], 'active')
382382
if (currentItemIndex <= itemsList.length - 1) {
383383
currentWordIndex = -1
384384
currentItemIndex++

0 commit comments

Comments
 (0)