Skip to content

Instantly share code, notes, and snippets.

@tomspilman
Created November 9, 2012 22:32
Show Gist options
  • Save tomspilman/4048753 to your computer and use it in GitHub Desktop.
Save tomspilman/4048753 to your computer and use it in GitHub Desktop.
Previous location to fix
if (newTouch.Id == touch.Id)
{
stateChanged |= touch.UpdateState(newTouch);
foundEvent = true;
events.RemoveAt(j);
break;
}
}
// If a new event was found then store it.
if (foundEvent)
state[i] = touch;
// Else if no event has come in then promote it to
// the moved state, but only when we're consuming state.
else if (consumeState) // FIX!
state[i] = touch.AsMovedState();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment