Skip to content

Commit

Permalink
Fix stuck analog stick when a touch event is cancelled
Browse files Browse the repository at this point in the history
This can happen if a stylus hover event is received while touching an OSC element
  • Loading branch information
cgutman committed Sep 21, 2022
1 parent ac0e784 commit 9c1a618
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public boolean onElementTouchEvent(MotionEvent event) {
break;
}
// up event (revoke touch)
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP: {
setPressed(false);
break;
Expand Down

0 comments on commit 9c1a618

Please sign in to comment.