Ignore movement from cancelled touches

This commit is contained in:
Cameron Gutman 2020-11-10 15:09:51 -06:00
parent 0b2466cf26
commit 02bfa90417

View File

@ -186,6 +186,10 @@ public class RelativeTouchContext implements TouchContext {
@Override
public boolean touchMoveEvent(int eventX, int eventY)
{
if (cancelled) {
return true;
}
if (eventX != lastTouchX || eventY != lastTouchY)
{
// We only send moves and drags for the primary touch point