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,7 +185,9 @@ class _RawTouchGestureDetectorRegionState
ffi.cursorModel
.move(_cacheLongPressPosition.dx, _cacheLongPressPosition.dy);
}
inputModel.tap(MouseButtons.right);
if (!ffi.ffiModel.isPeerMobile) {
inputModel.tap(MouseButtons.right);
}
}
onDoubleFinerTapDown(TapDownDetails d) {

View File

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