fix(ipad): keep touch gestures with external mouse

Signed-off-by: Rafal <mrsikorarafal@gmail.com>
This commit is contained in:
Rafal
2026-03-30 21:31:21 +02:00
parent d01ce3173f
commit 9ee100b53e

View File

@@ -426,9 +426,12 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
} }
return Container( return Container(
color: MyTheme.canvasColor, color: MyTheme.canvasColor,
child: inputModel.isPhysicalMouse.value child: RawTouchGestureDetectorRegion(
? getBodyForMobile() // Keep touch gestures available even after an
: RawTouchGestureDetectorRegion( // 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(), child: getBodyForMobile(),
ffi: gFFI, ffi: gFFI,
), ),