Fix errant touch events after a cancelled gesture

This commit is contained in:
Cameron Gutman 2019-11-09 11:23:50 -08:00
parent 88d6143897
commit 6d186892a8

View File

@ -1264,6 +1264,11 @@ public class Game extends Activity implements SurfaceHolder.Callback,
}
}
break;
case MotionEvent.ACTION_CANCEL:
for (TouchContext aTouchContext : touchContextMap) {
aTouchContext.cancelTouch();
}
break;
default:
return false;
}