mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 22:20:41 +00:00
Remove horizontal scrolling behavior detection for ASTableView
This commit is contained in:
parent
18fe728230
commit
c19c2da2ee
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user