MacOSX/VLC_app: Only get stuck at the very bottom of the nav view.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 3 Jan 2008 21:51:14 +0000 (21:51 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 3 Jan 2008 21:51:14 +0000 (21:51 +0000)
extras/MacOSX/VLC_app/Sources/VLCMainWindow.m

index 4316643..72ab918 100644 (file)
     /* Hack, because sliding cause some glitches */
     [navigatorView moveSubviewsToVisible];
 
-    /* Get the bottom of the navigator view to get stuck at some points */
-    if( [sender bounds].size.height - proposedPosition < minHeight*3./2. &&
-        [sender bounds].size.height - proposedPosition >= minHeight/2 )
-         return [sender bounds].size.height - minHeight;
-    if( [sender bounds].size.height - proposedPosition < minHeight/2 )
+    /* Make a stuck point at the bottom of the nav view */
+    if( [sender bounds].size.height - proposedPosition < minHeight )
          return [sender bounds].size.height;
+
     return proposedPosition;
 }