introduce switch for 'fancy scrolling'

This commit is contained in:
unK
2008-09-13 23:50:24 +02:00
parent 8bdda428bb
commit fb04687fef
5 changed files with 35 additions and 2 deletions

View File

@@ -719,11 +719,35 @@ int main(int argc, char *argv[])
if (Keypressed(input, Key.Up))
{
wCurrent->Go(wUp);
if (!Config.fancy_scrolling && (wCurrent == mLibArtists || wCurrent == mPlaylistList || wCurrent == mEditorLeftCol))
{
wCurrent->SetTimeout(50);
while (Keypressed(input, Key.Up))
{
wCurrent->Go(wUp);
wCurrent->Refresh();
wCurrent->ReadKey(input);
}
wCurrent->SetTimeout(ncmpcpp_window_timeout);
}
else
wCurrent->Go(wUp);
}
else if (Keypressed(input, Key.Down))
{
wCurrent->Go(wDown);
if (!Config.fancy_scrolling && (wCurrent == mLibArtists || wCurrent == mPlaylistList || wCurrent == mEditorLeftCol))
{
wCurrent->SetTimeout(50);
while (Keypressed(input, Key.Down))
{
wCurrent->Go(wDown);
wCurrent->Refresh();
wCurrent->ReadKey(input);
}
wCurrent->SetTimeout(ncmpcpp_window_timeout);
}
else
wCurrent->Go(wDown);
}
else if (Keypressed(input, Key.PageUp))
{