Skip to content

Commit

Permalink
Fixed touchpad issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimaruf991 authored Jan 22, 2024
1 parent 0e4752a commit 1486ac6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/winlator/widget/InputControlsView.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ public boolean onTouchEvent(MotionEvent event) {
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
if (!handled) touchpadView.onTouchEvent(event);
break;
case MotionEvent.ACTION_CANCEL:
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
if (!handled) touchpadView.onTouchEvent(event);
break;
}
}
return true;
Expand Down

0 comments on commit 1486ac6

Please sign in to comment.