Ignore absolute touch events from outside the stream view

This commit is contained in:
Cameron Gutman 2020-05-12 00:20:07 -07:00
parent cc877480ff
commit efd076bc6c

View File

@ -1310,6 +1310,11 @@ public class Game extends Activity implements SurfaceHolder.Callback,
return true;
}
if (view == null && !prefConfig.touchscreenTrackpad) {
// Absolute touch events should be dropped outside our view.
return true;
}
int actionIndex = event.getActionIndex();
int eventX = (int)event.getX(actionIndex);