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

MacOSX/VLC_app: Only get stuck at the very bottom of the nav view.

parent 882c580c
...@@ -314,12 +314,10 @@ ...@@ -314,12 +314,10 @@
/* Hack, because sliding cause some glitches */ /* Hack, because sliding cause some glitches */
[navigatorView moveSubviewsToVisible]; [navigatorView moveSubviewsToVisible];
/* Get the bottom of the navigator view to get stuck at some points */ /* Make a stuck point at the bottom of the nav view */
if( [sender bounds].size.height - proposedPosition < minHeight*3./2. && if( [sender bounds].size.height - proposedPosition < minHeight )
[sender bounds].size.height - proposedPosition >= minHeight/2 )
return [sender bounds].size.height - minHeight;
if( [sender bounds].size.height - proposedPosition < minHeight/2 )
return [sender bounds].size.height; return [sender bounds].size.height;
return proposedPosition; return proposedPosition;
} }
......
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