update android to android,adjust two fingers scroll

This commit is contained in:
csf
2022-05-10 14:44:47 +08:00
parent 4840b2744b
commit d2a01a7240
4 changed files with 26 additions and 20 deletions

View File

@@ -244,8 +244,6 @@ class FfiModel with ChangeNotifier {
if (isPeerAndroid) {
_touchMode = true;
FFI.setByName('peer_option', '{"name": "view-style", "value": "shrink"}');
FFI.canvasModel.updateViewStyle();
if (FFI.ffiModel.permissions['keyboard'] != false) {
showMobileActionsOverlay();
}
@@ -296,6 +294,13 @@ class ImageModel with ChangeNotifier {
FFI.canvasModel.scale = max(xscale, yscale);
}
initializeCursorAndCanvas();
Future.delayed(Duration(milliseconds: 1), () {
if (FFI.ffiModel.isPeerAndroid) {
FFI.setByName(
'peer_option', '{"name": "view-style", "value": "shrink"}');
FFI.canvasModel.updateViewStyle();
}
});
}
_image = image;
if (image != null) notifyListeners();