From 4f651d254777c045d9cd96fcb29d44b80b9a56fd Mon Sep 17 00:00:00 2001 From: "Evan D. Schoenberg, M.D" Date: Sun, 9 Aug 2015 18:41:14 -0400 Subject: [PATCH] Added a comment to explain the need to disable scroll handling --- TLYShyNavBar/TLYShyNavBarManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TLYShyNavBar/TLYShyNavBarManager.m b/TLYShyNavBar/TLYShyNavBarManager.m index 2776090..c3bcace 100644 --- a/TLYShyNavBar/TLYShyNavBarManager.m +++ b/TLYShyNavBar/TLYShyNavBarManager.m @@ -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];