1 parent 0e093f9 commit 097592bCopy full SHA for 097592b
1 file changed
src/main.js
@@ -378,7 +378,7 @@ wordEndBtn.addEventListener('click', () => {
378
wordEl.dataset.endTime = audio.currentTime
379
if (currentWordIndex + 1 >= lineEl.childElementCount) {
380
// end of line
381
- updateSelection(item, 'active')
+ updateSelection(itemsList[currentItemIndex], 'active')
382
if (currentItemIndex <= itemsList.length - 1) {
383
currentWordIndex = -1
384
currentItemIndex++
0 commit comments