mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-28 15:41:03 +03:00
fix: mobile cursor focus (#9803)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -139,8 +139,7 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
_timerDidChangeMetrics = Timer(Duration(milliseconds: 100), () async {
|
||||
// We need this comparation because poping up the floating action will also trigger `didChangeMetrics()`.
|
||||
if (newBottom != _viewInsetsBottom) {
|
||||
await gFFI.canvasModel.updateViewStyle(refreshMousePos: false);
|
||||
gFFI.canvasModel.moveToCenterCursor();
|
||||
gFFI.canvasModel.mobileFocusCanvasCursor();
|
||||
_viewInsetsBottom = newBottom;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user