update annotation

This commit is contained in:
True Zhuanjia
2024-06-17 00:20:39 +08:00
parent 4e3be8513d
commit 01d2a937ca
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -161,6 +161,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
[self becomeFirstResponder];
}
// this method also deals with lifting streamview for local keyboard
- (void)keyboardWillShow:(NSNotification *)notification{
if(settings.liftStreamViewForKeyboard && !isInputingText){
NSDictionary *userInfo = notification.userInfo;
@@ -178,6 +179,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
// NSLog(@"keyboard will show");
}
// this method also deals with recovering streamview when local keyboard is turned off
- (void)keyboardWillHide:(NSNotification *)notification{
if(isInputingText){
@@ -179,7 +179,7 @@
#if 0
// FIXME: This doesn't work reliably on iPad for some reason. Showing and hiding the keyboard
// several times in a row will not correctly restore the state of the UIScrollView.
// I add this notification to the StreamView, works well on ipad mini6.
// TrueZhuanJia: Already fixed by my refactored keyboard toggle gesture recognizer, and the keyboardWillShow/Hide method in StreamView.m
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(keyboardWillShow:)
name: UIKeyboardWillShowNotification