Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix, one tap results double tap event

fufesou863c8de28ee9
diff --git a/flutter/lib/common/widgets/remote_input.dart b/flutter/lib/common/widgets/remote_input.dart
index b00cd1fb4..e2bb86e43 100644
--- a/flutter/lib/common/widgets/remote_input.dart
+++ b/flutter/lib/common/widgets/remote_input.dart
@@ -112,7 +112,9 @@ class _RawTouchGestureDetectorRegionState
if (lastDeviceKind != PointerDeviceKind.touch) {
return;
}
- inputModel.tap(MouseButtons.left);
+ if (!handleTouch) {
+ inputModel.tap(MouseButtons.left);
+ }
}
onDoubleTapDown(TapDownDetails d) {
diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart
index f638fb2e8..f5b6270f9 100644
--- a/flutter/lib/mobile/pages/remote_page.dart
+++ b/flutter/lib/mobile/pages/remote_page.dart
@@ -421,9 +421,8 @@ class _RemotePageState extends State<RemotePage> {
);
}
- // to-do: Check if peer is ios.
- bool get isPeerMobile => kPeerPlatformAndroid == gFFI.ffiModel.pi.platform;
- bool get showCursorPaint => !isPeerMobile && !gFFI.canvasModel.cursorEmbedded;
+ bool get showCursorPaint =>
+ !gFFI.ffiModel.isPeerAndroid && !gFFI.canvasModel.cursorEmbedded;
Widget getBodyForMobile() {
final keyboardIsVisible = keyboardVisibilityController.isVisible;