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