mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
cursor position and size update
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -310,7 +310,6 @@ class InputModel {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int _signOrZero(num x) {
|
||||
if (x == 0) {
|
||||
return 0;
|
||||
@@ -362,7 +361,6 @@ class InputModel {
|
||||
trackpadScrollDistance = Offset.zero;
|
||||
}
|
||||
|
||||
|
||||
void onPointDownImage(PointerDownEvent e) {
|
||||
debugPrint("onPointDownImage");
|
||||
if (e.kind != ui.PointerDeviceKind.mouse) {
|
||||
|
||||
@@ -244,7 +244,6 @@ class FfiModel with ChangeNotifier {
|
||||
parent.target?.canvasModel.updateViewStyle();
|
||||
}
|
||||
parent.target?.recordingModel.onSwitchDisplay();
|
||||
parent.target?.inputModel.refreshMousePos();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@@ -621,6 +620,7 @@ class CanvasModel with ChangeNotifier {
|
||||
_y = (size.height - displayHeight * _scale) / 2;
|
||||
_imageOverflow.value = _x < 0 || y < 0;
|
||||
notifyListeners();
|
||||
parent.target?.inputModel.refreshMousePos();
|
||||
}
|
||||
|
||||
updateScrollStyle() async {
|
||||
|
||||
Reference in New Issue
Block a user