to-do: adjust rather then reset

This commit is contained in:
open-trade 2020-11-27 22:50:24 +08:00
parent 60f48c5326
commit 9c532c507b

View File

@ -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();
}