fix: mobile -> mobile, long press (#9775)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-10-29 19:57:29 +08:00 committed by GitHub
parent 1c9b456456
commit a289eae07c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -185,8 +185,10 @@ class _RawTouchGestureDetectorRegionState
ffi.cursorModel ffi.cursorModel
.move(_cacheLongPressPosition.dx, _cacheLongPressPosition.dy); .move(_cacheLongPressPosition.dx, _cacheLongPressPosition.dy);
} }
if (!ffi.ffiModel.isPeerMobile) {
inputModel.tap(MouseButtons.right); inputModel.tap(MouseButtons.right);
} }
}
onDoubleFinerTapDown(TapDownDetails d) { onDoubleFinerTapDown(TapDownDetails d) {
lastDeviceKind = d.kind; lastDeviceKind = d.kind;

View File

@ -142,6 +142,7 @@ class FfiModel with ChangeNotifier {
bool get touchMode => _touchMode; bool get touchMode => _touchMode;
bool get isPeerAndroid => _pi.platform == kPeerPlatformAndroid; bool get isPeerAndroid => _pi.platform == kPeerPlatformAndroid;
bool get isPeerMobile => isPeerAndroid;
bool get viewOnly => _viewOnly; bool get viewOnly => _viewOnly;