mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-07-08 00:05:12 +03:00
fix(ipad): keep touch gestures with external mouse
Signed-off-by: Rafal <mrsikorarafal@gmail.com>
This commit is contained in:
@@ -426,12 +426,15 @@ 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
|
||||||
child: getBodyForMobile(),
|
// iPad. Pointer input still flows through the
|
||||||
ffi: gFFI,
|
// session body listener, while this wrapper
|
||||||
),
|
// preserves pinch / pan touch gestures.
|
||||||
|
child: getBodyForMobile(),
|
||||||
|
ffi: gFFI,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user