mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Add canCancelAllTouchesInViews
This commit is contained in:
@@ -33,6 +33,13 @@
|
||||
return (ASScrollNode *)ASViewToDisplayNode(self);
|
||||
}
|
||||
|
||||
- (BOOL)touchesShouldCancelInContentView:(UIView *)view {
|
||||
if ([[self scrollNode] canCancelAllTouchesInViews]) {
|
||||
return true;
|
||||
}
|
||||
return [super touchesShouldCancelInContentView:view];
|
||||
}
|
||||
|
||||
#pragma mark - _ASDisplayView behavior substitutions
|
||||
// Need these to drive interfaceState so we know when we are visible, if not nested in another range-managing element.
|
||||
// Because our superclass is a true UIKit class, we cannot also subclass _ASDisplayView.
|
||||
|
||||
Reference in New Issue
Block a user