Skip to content

Commit

Permalink
Merge pull request #1805 from MTG/issue436
Browse files Browse the repository at this point in the history
Display time info under mouse when ruler is activated
  • Loading branch information
ffont authored Jan 20, 2025
2 parents 21ba603 + e1bafdf commit ddf50bd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions freesound/static/bw-frontend/src/components/player/player-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ const createProgressIndicator = (parentNode, audioElement, playerImgNode, player
}
const rulerIndicator = playerImgNode.parentNode.getElementsByClassName('bw-player__ruler-indicator')[0];
rulerIndicator.innerText = readout;
} else {
// Update playhead
const progressPercentage = evt.offsetX / progressIndicatorContainer.clientWidth
setProgressIndicator(progressPercentage * 100, parentNode)

// Update selected time indicator (only in big players)
updateProgressBarIndicator(parentNode, audioElement, progressPercentage)
}
// Update playhead
const progressPercentage = evt.offsetX / progressIndicatorContainer.clientWidth
setProgressIndicator(progressPercentage * 100, parentNode)

// Update selected time indicator (only in big players)
updateProgressBarIndicator(parentNode, audioElement, progressPercentage)
}),
50
)
Expand Down

0 comments on commit ddf50bd

Please sign in to comment.