Skip to content

Commit

Permalink
Merge pull request #4271 from rustdesk/revert-4265-lpcy-touch-pad
Browse files Browse the repository at this point in the history
Revert "To support the touch pad of the magnetic keyboard on Android tablets."
  • Loading branch information
rustdesk committed May 4, 2023
2 parents 6643b8c + a7689f5 commit 357028b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flutter/lib/models/input_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand All @@ -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));
}
Expand Down

0 comments on commit 357028b

Please sign in to comment.