mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Avoid redundant content inset updates.
This commit is contained in:
parent
55158e2a59
commit
cea93784b1
1 changed files with 3 additions and 1 deletions
|
@ -4164,7 +4164,9 @@ typedef enum : NSUInteger {
|
||||||
BOOL wasScrolledToBottom = [self isScrolledToBottom];
|
BOOL wasScrolledToBottom = [self isScrolledToBottom];
|
||||||
|
|
||||||
void (^adjustInsets)(void) = ^(void) {
|
void (^adjustInsets)(void) = ^(void) {
|
||||||
self.collectionView.contentInset = newInsets;
|
if (!UIEdgeInsetsEqualToEdgeInsets(self.collectionView.contentInset, newInsets)) {
|
||||||
|
self.collectionView.contentInset = newInsets;
|
||||||
|
}
|
||||||
self.collectionView.scrollIndicatorInsets = newInsets;
|
self.collectionView.scrollIndicatorInsets = newInsets;
|
||||||
|
|
||||||
// Note there is a bug in iOS11.2 which where switching to the emoji keyboard
|
// Note there is a bug in iOS11.2 which where switching to the emoji keyboard
|
||||||
|
|
Loading…
Reference in a new issue