From 9ee100b53e7a3f336122f827c814b363f7a9f9dc Mon Sep 17 00:00:00 2001 From: Rafal Date: Mon, 30 Mar 2026 21:31:21 +0200 Subject: [PATCH] fix(ipad): keep touch gestures with external mouse Signed-off-by: Rafal --- flutter/lib/mobile/pages/remote_page.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart index 9102d163c..8677c690e 100644 --- a/flutter/lib/mobile/pages/remote_page.dart +++ b/flutter/lib/mobile/pages/remote_page.dart @@ -426,12 +426,15 @@ class _RemotePageState extends State with WidgetsBindingObserver { } return Container( color: MyTheme.canvasColor, - child: inputModel.isPhysicalMouse.value - ? getBodyForMobile() - : RawTouchGestureDetectorRegion( - child: getBodyForMobile(), - ffi: gFFI, - ), + child: RawTouchGestureDetectorRegion( + // Keep touch gestures available even after an + // external mouse or trackpad is detected on + // iPad. Pointer input still flows through the + // session body listener, while this wrapper + // preserves pinch / pan touch gestures. + child: getBodyForMobile(), + ffi: gFFI, + ), ); }), ),