From 315a2a695fd383e16e677e00685fca9b3f833854 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 2 Oct 2023 12:17:11 +0800 Subject: [PATCH] add comments Signed-off-by: fufesou --- flutter/lib/common/widgets/remote_input.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flutter/lib/common/widgets/remote_input.dart b/flutter/lib/common/widgets/remote_input.dart index e2bb86e43..a07bffa47 100644 --- a/flutter/lib/common/widgets/remote_input.dart +++ b/flutter/lib/common/widgets/remote_input.dart @@ -93,6 +93,7 @@ class _RawTouchGestureDetectorRegionState return; } if (handleTouch) { + // Desktop or mobile "Touch mode" ffi.cursorModel.move(d.localPosition.dx, d.localPosition.dy); inputModel.tapDown(MouseButtons.left); } @@ -113,6 +114,7 @@ class _RawTouchGestureDetectorRegionState return; } if (!handleTouch) { + // Mobile, "Mouse mode" inputModel.tap(MouseButtons.left); } }