autoDock and gesture interaction fixes

This commit is contained in:
True Zhuanjia
2026-04-23 17:09:53 +08:00
parent 4dc96ba189
commit 5ee443337c
2 changed files with 19 additions and 1 deletions
@@ -551,6 +551,11 @@
name:UIKeyboardWillHideNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardDidHide)
name:UIKeyboardDidHideNotification
object:nil];
[safeTimer start];
#endif
}
@@ -767,6 +772,11 @@
[_streamView keyboardWillHide];
}
- (void)keyboardDidHide{
_streamView.bounds = _deviceWindow.bounds;
_streamView.frame = _deviceWindow.frame;
}
- (void)handleAbnormalKeyboards:(NSNotification *)notification{
[_streamView handleAbnormalKeyboards:notification];
}
@@ -1757,7 +1767,10 @@
}
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC));
dispatch_after(delayTime, dispatch_get_main_queue(), ^{
if(widget.autoDockEnabled) [widget restoreFromAutoDockWithAnimated:true];
if(widget.autoDockEnabled){
OnScreenWidgetView.autoDockRestoreInitByViewResize = true;
[widget restoreFromAutoDockWithAnimated:true];
}
});
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {