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 <[email protected]>
- - - - -
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_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits