Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Fixes a scrolling offset issue when reaching to top and dismissing th…
Browse files Browse the repository at this point in the history
…e keyboard with panning.
  • Loading branch information
dzenbot committed Oct 22, 2014
1 parent 977c6f7 commit 4abcf50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Classes/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1056,15 +1056,15 @@ - (void)didChangeKeyboardFrame:(NSNotification *)notification

self.movingKeyboard = self.scrollViewProxy.isDragging;

if (!self.movingKeyboard) {
if (self.movingKeyboard == NO) {
return;
}

self.keyboardHC.constant = [self appropriateKeyboardHeight:notification];
self.scrollViewHC.constant = [self appropriateScrollViewHeight];

if (self.isInverted && self.isMovingKeyboard && !CGPointEqualToPoint(self.scrollViewProxy.contentOffset, _draggingOffset)) {
if (!self.scrollViewProxy.isDecelerating) {
if (!self.scrollViewProxy.isDecelerating && self.scrollViewProxy.isTracking) {
self.scrollViewProxy.contentOffset = _draggingOffset;
}
}
Expand Down

0 comments on commit 4abcf50

Please sign in to comment.