fix view lift not working on first keyboard invoke.
This commit is contained in:
1 parent
746479d359
commit
e5fa7f9c72
3 files changed
+37
-40
No files matched your search
@@ -32,14 +32,12 @@ static CGFloat lowestTouchPointYCoord = 0.0;
|
||||
for(UITouch *touch in [event allTouches]){
|
||||
if(lowestTouchPointYCoord < [touch locationInView:self.view].y) lowestTouchPointYCoord = [touch locationInView:self.view].y;
|
||||
}
|
||||
//NSLog(@"lowestTouchPointYCoord: %f ", lowestTouchPointYCoord);
|
||||
_lowestTouchPointHeight = screenHeightInPoints - lowestTouchPointYCoord;
|
||||
self.state = UIGestureRecognizerStatePossible;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
||||
|
||||
// [super touchesEnded:touches withEvent:event];
|
||||
if(multiFingerDown && [[event allTouches] count] == [touches count]){
|
||||
multiFingerDown = false;
|
||||
@@ -50,4 +48,10 @@ static CGFloat lowestTouchPointYCoord = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
+ (CGFloat)lowestTouchPointHeight{
|
||||
@synchronized (self){
|
||||
return self.lowestTouchPointHeight;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user