Ignore fine scrubber gesture overlap

This commit is contained in:
Bryce Hackel
2024-08-26 00:41:55 -07:00
parent 573c2d2f43
commit 963b9d5fd3
2 changed files with 15 additions and 1 deletions

View File

@@ -977,6 +977,16 @@ BOOL isTabSelected = NO;
if (otherGestureRecognizer == playerBar.scrubGestureRecognizer) {
return NO;
}
// Do not allow this gesture to activate with the fine scrubber gesture
YTFineScrubberFilmstripView *fineScrubberFilmstrip = playerBar.fineScrubberFilmstrip;
if (!fineScrubberFilmstrip) {
return YES;
}
YTFineScrubberFilmstripCollectionView *filmstripCollectionView = [fineScrubberFilmstrip valueForKey:@"_filmstripCollectionView"];
if (filmstripCollectionView && otherGestureRecognizer == filmstripCollectionView.panGestureRecognizer) {
return NO;
}
}
return YES;
}