mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Remove horizontal scrolling behavior detection for ASTableView
This commit is contained in:
@@ -685,13 +685,6 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
ASScrollDirection direction = ASScrollDirectionNone;
|
||||
ASScrollDirection scrollableDirections = [self scrollableDirections];
|
||||
|
||||
if (ASScrollDirectionContainsHorizontalDirection(scrollableDirections)) { // Can scroll horizontally.
|
||||
if (scrollVelocity.x < 0.0) {
|
||||
direction |= ASScrollDirectionRight;
|
||||
} else if (scrollVelocity.x > 0.0) {
|
||||
direction |= ASScrollDirectionLeft;
|
||||
}
|
||||
}
|
||||
if (ASScrollDirectionContainsVerticalDirection(scrollableDirections)) { // Can scroll vertically.
|
||||
if (scrollVelocity.y < 0.0) {
|
||||
direction |= ASScrollDirectionDown;
|
||||
|
||||
Reference in New Issue
Block a user