Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ongoingTouchIndexById(idToFind) {
- for (let i = 0; i < ongoingTouches.length; i++) {
- const id = ongoingTouches[ i ].identifier;
- if (id == idToFind) {
- return i;
- }
- }
- return -1; // not found
- }
Add Comment
Please, Sign In to add comment