{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/1672","repository_url":"https://api.github.com/repos/processing/p5.js","labels_url":"https://api.github.com/repos/processing/p5.js/issues/1672/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/1672/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/1672/events","html_url":"https://github.com/processing/p5.js/issues/1672","id":190982999,"number":1672,"title":"touches[] array not picking up more than one touch","user":{"login":"JGL","id":243074,"avatar_url":"https://avatars.githubusercontent.com/u/243074?v=3","gravatar_id":"","url":"https://api.github.com/users/JGL","html_url":"https://github.com/JGL","followers_url":"https://api.github.com/users/JGL/followers","following_url":"https://api.github.com/users/JGL/following{/other_user}","gists_url":"https://api.github.com/users/JGL/gists{/gist_id}","starred_url":"https://api.github.com/users/JGL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JGL/subscriptions","organizations_url":"https://api.github.com/users/JGL/orgs","repos_url":"https://api.github.com/users/JGL/repos","events_url":"https://api.github.com/users/JGL/events{/privacy}","received_events_url":"https://api.github.com/users/JGL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-22T12:10:07Z","updated_at":"2016-11-24T12:00:13Z","closed_at":null,"body":"I've just made a basic demo to try experimenting with multitouch within p5.js:\r\n\r\nhttps://jgl.github.io/Reactickles3/TouchDemonstration/\r\n\r\nYou can find the source code below:\r\n\r\nhttps://github.com/JGL/Reactickles3/blob/master/docs/TouchDemonstration/sketch.js\r\n\r\nI'm drawing a circle on every touch, but only one ever gets picked up. What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/processing/p5.js/issues/comments/262760478","html_url":"https://github.com/processing/p5.js/issues/1672#issuecomment-262760478","issue_url":"https://api.github.com/repos/processing/p5.js/issues/1672","id":262760478,"user":{"login":"limzykenneth","id":7543950,"avatar_url":"https://avatars.githubusercontent.com/u/7543950?v=3","gravatar_id":"","url":"https://api.github.com/users/limzykenneth","html_url":"https://github.com/limzykenneth","followers_url":"https://api.github.com/users/limzykenneth/followers","following_url":"https://api.github.com/users/limzykenneth/following{/other_user}","gists_url":"https://api.github.com/users/limzykenneth/gists{/gist_id}","starred_url":"https://api.github.com/users/limzykenneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limzykenneth/subscriptions","organizations_url":"https://api.github.com/users/limzykenneth/orgs","repos_url":"https://api.github.com/users/limzykenneth/repos","events_url":"https://api.github.com/users/limzykenneth/events{/privacy}","received_events_url":"https://api.github.com/users/limzykenneth/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T12:00:13Z","updated_at":"2016-11-24T12:00:13Z","body":"Although it's not consistent nor recommended, you can try user agent sniffing.\r\n```javascript\r\nvar ua = navigator.userAgent;\r\nvar chromeReg = /^((?!chrome).)*$/i;\r\nvar safariReg = /safari/i;\r\n\r\nif(safariReg.test(ua) && !chromeReg.test(ua)){\r\n  // browser is safari\r\n}\r\n```\r\n\r\nBecause Chrome's user agent string have \"Safari\" as well so need to check to make sure it's not Chrome. The regex should checkout though better test it to be sure."}}
{"actor":{"display_login":"limzykenneth"}}