Added a comment to explain the need to disable scroll handling

This commit is contained in:
Evan D. Schoenberg, M.D 2015-08-09 18:41:14 -04:00
parent a01f96db81
commit 4f651d2547
1 changed files with 2 additions and 0 deletions

View File

@ -363,6 +363,8 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
self.extensionViewContainer.frame = bounds;
[self.extensionViewContainer addSubview:view];
/* Disable scroll handling temporarily while laying out views to avoid double-changing content
* offsets in _handleScrolling. */
BOOL wasDisabled = self.disable;
self.disable = YES;
[self layoutViews];