mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-15 07:21:29 +03:00
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -408,6 +408,13 @@ class InputModel {
|
||||
}
|
||||
}
|
||||
|
||||
void refreshMousePos() => handleMouse({
|
||||
'x': lastMousePos.dx,
|
||||
'y': lastMousePos.dy,
|
||||
'buttons': 0,
|
||||
'type': _kMouseEventMove,
|
||||
});
|
||||
|
||||
void handleMouse(Map<String, dynamic> evt) {
|
||||
double x = evt['x'];
|
||||
double y = max(0.0, evt['y']);
|
||||
|
||||
@@ -244,6 +244,7 @@ class FfiModel with ChangeNotifier {
|
||||
parent.target?.canvasModel.updateViewStyle();
|
||||
}
|
||||
parent.target?.recordingModel.onSwitchDisplay();
|
||||
parent.target?.inputModel.refreshMousePos();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user