mirror of
https://github.com/brunodev85/winlator.git
synced 2024-11-23 05:09:38 +00:00
commit
f93c571468
@ -398,6 +398,10 @@ public class InputControlsView extends View {
|
||||
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;
|
||||
|
@ -120,6 +120,9 @@ public class TouchpadView extends View {
|
||||
numFingers--;
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
numFingers = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user