Browse Source

macosx/vlc_app/VLCMediaListLayer: Correctly go to the right layer.

pull/2/head
Pierre d'Herbemont 19 years ago
parent
commit
bbc02c3f6a
  1. 6
      projects/macosx/vlc_app/Sources/VLCMediaListLayer.m

6
projects/macosx/vlc_app/Sources/VLCMediaListLayer.m

@ -215,7 +215,8 @@
/* It is ok to scroll five layers */
if( selectedIndex - index < 5 )
{
[self changeSelectedLayerToPreviousIndex];
while( index < selectedIndex )
[self changeSelectedLayerToPreviousIndex];
return;
}
[self changeSelectedLayerToPreviousIndex];
@ -227,7 +228,8 @@
{
if( index - selectedIndex < 5 )
{
[self changeSelectedLayerToNextIndex];
while( index > selectedIndex )
[self changeSelectedLayerToNextIndex];
return;
}
[self changeSelectedLayerToNextIndex];

Loading…
Cancel
Save