Commit bbc02c3f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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

parent 70c4d326
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment