resolve gesture competition in non-native touch modes

This commit is contained in:
True Zhuanjia
2024-06-18 02:12:35 +08:00
parent c3d44647f9
commit c3c7e670fc
5 changed files with 27 additions and 7 deletions
@@ -196,6 +196,7 @@
_scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
#if !TARGET_OS_TV
[_scrollView.panGestureRecognizer setMinimumNumberOfTouches:2];
[_scrollView.panGestureRecognizer setMaximumNumberOfTouches:2]; // reduce competing with keyboardToggleRecognizer in StreamView.
#endif
[_scrollView setShowsHorizontalScrollIndicator:NO];
[_scrollView setShowsVerticalScrollIndicator:NO];