to-do: adjust rather then reset
This commit is contained in:
parent
60f48c5326
commit
9c532c507b
@ -163,7 +163,6 @@ class FfiModel with ChangeNotifier {
|
|||||||
_display.width = int.parse(evt['width']);
|
_display.width = int.parse(evt['width']);
|
||||||
_display.height = int.parse(evt['height']);
|
_display.height = int.parse(evt['height']);
|
||||||
FFI.cursorModel.updateDisplayOrigin(_display.x, _display.y);
|
FFI.cursorModel.updateDisplayOrigin(_display.x, _display.y);
|
||||||
FFI.canvasModel.resetOffset();
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -435,6 +434,7 @@ class CursorModel with ChangeNotifier {
|
|||||||
_x = x;
|
_x = x;
|
||||||
_y = y;
|
_y = y;
|
||||||
FFI.moveMouse(x, y);
|
FFI.moveMouse(x, y);
|
||||||
|
FFI.canvasModel.resetOffset();
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user