Skip to content

Commit

Permalink
Synchronize ASPanningOverriddenUITextView's scrollsToTop when the scr…
Browse files Browse the repository at this point in the history
…ollEnabled property changes
  • Loading branch information
ejensen committed Mar 29, 2016
1 parent 1ea1560 commit a4a0b1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AsyncDisplayKit/ASEditableTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ - (BOOL)scrollEnabled
- (void)setScrollEnabled:(BOOL)scrollEnabled
{
_shouldBlockPanGesture = !scrollEnabled;
self.scrollsToTop = scrollEnabled;

[super setScrollEnabled:YES];
}

Expand Down

0 comments on commit a4a0b1f

Please sign in to comment.