From a7689f540cb1c43e26b17f0272fa58c76a5c69ba Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Thu, 4 May 2023 20:31:03 +0800 Subject: [PATCH] Revert "To support the touch pad of the magnetic keyboard on Android tablets." --- flutter/lib/models/input_model.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dart index 8239bbf5a..ff0faf7a4 100644 --- a/flutter/lib/models/input_model.dart +++ b/flutter/lib/models/input_model.dart @@ -311,7 +311,7 @@ class InputModel { void onPointHoverImage(PointerHoverEvent e) { _stopFling = true; - if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) return; + if (e.kind != ui.PointerDeviceKind.mouse) return; if (!isPhysicalMouse.value) { isPhysicalMouse.value = true; } @@ -439,7 +439,7 @@ class InputModel { void onPointDownImage(PointerDownEvent e) { debugPrint("onPointDownImage"); _stopFling = true; - if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) { + if (e.kind != ui.PointerDeviceKind.mouse) { if (isPhysicalMouse.value) { isPhysicalMouse.value = false; } @@ -450,7 +450,7 @@ class InputModel { } void onPointUpImage(PointerUpEvent e) { - if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) return; + if (e.kind != ui.PointerDeviceKind.mouse) return; if (isPhysicalMouse.value) { handleMouse(getEvent(e, _kMouseEventUp)); }