Repeat song on double click only if there is a previous item
This commit is contained in:
parent
989c99521f
commit
0e2b960ae7
2 changed files with 2 additions and 2 deletions
|
@ -707,7 +707,7 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
|
|||
if (currentPlayer) {
|
||||
if (currentPlayer.id === 'htmlaudioplayer' && (currentPlayer._currentTime <= 5 || !playbackManager.previousTrack(currentPlayer))) {
|
||||
// Cancel this event if doubleclick is fired
|
||||
if (e.originalEvent.detail > 1) {
|
||||
if (e.originalEvent.detail > 1 && playbackManager.previousTrack(currentPlayer)) {
|
||||
return;
|
||||
}
|
||||
playbackManager.seekPercent(0, currentPlayer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue