Merge pull request #489 from Vocaluxe/FixPlaylistScrollOffset_release-0.4.1

Scroll offset was ignored while singing a single playlist song (fix #487 for release-0.4.1)
This commit is contained in:
daggeg authored and GitHub committed 2020-02-08 11:19:50 +01:00
commit dd7be5c575
1 file changed
+3 -3
+3 -3
View File
@@ -554,7 +554,7 @@ namespace VocaluxeLib.Menu
break;
case Keys.Enter:
_StartPlaylistSong(_CurrentPlaylistElement);
_StartPlaylistSong(_CurrentPlaylistElement + _Offset);
break;
case Keys.Add: //move the selected song up
@@ -880,7 +880,7 @@ namespace VocaluxeLib.Menu
//Start selected song with double click
if (mouseEvent.LD && _CurrentPlaylistElement != -1)
_StartPlaylistSong(_CurrentPlaylistElement);
_StartPlaylistSong(_CurrentPlaylistElement + _Offset);
//Change order with holding LB
if (mouseEvent.LBH && _CurrentPlaylistElement != -1 && _PlaylistElementContents.Count > 0 && DragAndDropSongID == -1)
@@ -1259,4 +1259,4 @@ namespace VocaluxeLib.Menu
}
#endregion ThemeEdit
}
}
}