mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix settings slideout scrolling too far on iOS 13
This commit is contained in:
@@ -67,10 +67,12 @@ static const int bitrateTable[] = {
|
|||||||
// highest view Y value to set our scroll view's content
|
// highest view Y value to set our scroll view's content
|
||||||
// size.
|
// size.
|
||||||
for (UIView* view in self.scrollView.subviews) {
|
for (UIView* view in self.scrollView.subviews) {
|
||||||
// UIScrollViews have 2 default UIImageView children
|
// UIScrollViews have 2 default child views
|
||||||
// which represent the horizontal and vertical scrolling
|
// which represent the horizontal and vertical scrolling
|
||||||
// indicators. Ignore these when computing content size.
|
// indicators. Ignore any views we don't recognize.
|
||||||
if ([view isKindOfClass:[UIImageView class]]) {
|
if (![view isKindOfClass:[UILabel class]] &&
|
||||||
|
![view isKindOfClass:[UISegmentedControl class]] &&
|
||||||
|
![view isKindOfClass:[UISlider class]]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user