mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-14 14:46:13 +00:00
refresh
This commit is contained in:
1 parent
7662ab0a0f
commit
60f48c5326
2 files changed
+17
-10
No files matched your search
@@ -163,6 +163,7 @@ class FfiModel with ChangeNotifier {
|
||||
_display.width = int.parse(evt['width']);
|
||||
_display.height = int.parse(evt['height']);
|
||||
FFI.cursorModel.updateDisplayOrigin(_display.x, _display.y);
|
||||
FFI.canvasModel.resetOffset();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@@ -252,6 +253,12 @@ class CanvasModel with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void resetOffset() {
|
||||
_x = 0;
|
||||
_y = 0;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void panY(double dy) {
|
||||
_y += dy;
|
||||
notifyListeners();
|
||||
|
||||
Reference in new issue
Block a user