From 9c532c507b873018c9462950faea34b27ee1d7e7 Mon Sep 17 00:00:00 2001 From: open-trade Date: Fri, 27 Nov 2020 22:50:24 +0800 Subject: [PATCH] to-do: adjust rather then reset --- flutter_hbb/lib/model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_hbb/lib/model.dart b/flutter_hbb/lib/model.dart index baf51e1ee..a6facdcf1 100644 --- a/flutter_hbb/lib/model.dart +++ b/flutter_hbb/lib/model.dart @@ -163,7 +163,6 @@ 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(); } @@ -435,6 +434,7 @@ class CursorModel with ChangeNotifier { _x = x; _y = y; FFI.moveMouse(x, y); + FFI.canvasModel.resetOffset(); notifyListeners(); }