[vlc-commits] [Git][videolan/vlc][master] macosx: Fix down-scroll in VLCSubScrollView not scrolling parent view

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Nov 12 07:00:40 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1ab198cf by Claudio Cambra at 2022-11-12T06:45:44+00:00
macosx: Fix down-scroll in VLCSubScrollView not scrolling parent view

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/views/VLCSubScrollView.m


Changes:

=====================================
modules/gui/macosx/views/VLCSubScrollView.m
=====================================
@@ -47,9 +47,9 @@
 
     // Sometimes scroll views initialise with the Y value being almost 0, but not quite (e.g. 0.000824)
     const BOOL isViewAtYStartAndScrollUp = self.verticalScroller.floatValue <= 0.01 && event.deltaY > 0;
-    const BOOL isViewAtYEndAndScrollDown = self.verticalScroller.floatValue >= 1. && event.deltaY < 0;
+    const BOOL isViewAtYEndAndScrollDown = self.verticalScroller.floatValue >= 0.99 && event.deltaY < 0;
     const BOOL isViewAtXStartAndScrollLeft = self.horizontalScroller.floatValue <= 0.01 && event.deltaX > 0;
-    const BOOL isViewAtXEndAndScrollRight = self.horizontalScroller.floatValue >= 1 && event.deltaX < 0;
+    const BOOL isViewAtXEndAndScrollRight = self.horizontalScroller.floatValue >= 0.99 && event.deltaX < 0;
 
     const BOOL isSubScrollViewScrollableY = self.documentView.frame.size.height > self.documentVisibleRect.size.height;
     const BOOL isSubScrollViewScrollableX = self.documentView.frame.size.width > self.documentVisibleRect.size.width;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ab198cf02013fb4dfd48f2feca880dd692851c4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ab198cf02013fb4dfd48f2feca880dd692851c4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list