{"action":"created","issue":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/767","labels_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/767/labels{/name}","comments_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/767/comments","events_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/767/events","html_url":"https://github.com/hammerjs/hammer.js/issues/767","id":59477098,"number":767,"title":"Multitouch panning not working correctly","user":{"login":"demrks","id":5760429,"avatar_url":"https://avatars.githubusercontent.com/u/5760429?v=3","gravatar_id":"","url":"https://api.github.com/users/demrks","html_url":"https://github.com/demrks","followers_url":"https://api.github.com/users/demrks/followers","following_url":"https://api.github.com/users/demrks/following{/other_user}","gists_url":"https://api.github.com/users/demrks/gists{/gist_id}","starred_url":"https://api.github.com/users/demrks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demrks/subscriptions","organizations_url":"https://api.github.com/users/demrks/orgs","repos_url":"https://api.github.com/users/demrks/repos","events_url":"https://api.github.com/users/demrks/events{/privacy}","received_events_url":"https://api.github.com/users/demrks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hammerjs/hammer.js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hammerjs/hammer.js/labels/needs-investigation","name":"needs-investigation","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-02T12:49:57Z","updated_at":"2015-11-28T21:50:43Z","closed_at":null,"body":"I was trying to implement multitouch panning with hammer.js, so that you can start panning with one finger and continue with another one.\r\n\r\nI thought that the deltaXY values already took care of that, but apparently the values of both deltaX and deltaY are sometimes jumping from one value to another. So if you do:\r\n\r\n*Left finger down, Left finger pan (working), Right finger down (Left finger is still down), Right finger pan, Right finger up, Right finger down, Right finger pan etc. *\r\n\r\nthings get really weird. Similar things happen if the number of touch points change (e.g. pinch and pan at the same time), but this is probably related to #596.\r\n\r\nI even tried to set `mc.set({ pointers: 1 });` (no multitouch panning), but the second touch/pointer sometimes still fires 'panmove/panstart' events. In either case the deltaX/deltaY values are jumping randomly. \r\n\r\n'panstart' in general is not really reliable currently. Sometimes it gets fired for a second touch, sometimes it doesn't."},"comment":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/comments/160338712","html_url":"https://github.com/hammerjs/hammer.js/issues/767#issuecomment-160338712","issue_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/767","id":160338712,"user":{"login":"dancek","id":245394,"avatar_url":"https://avatars.githubusercontent.com/u/245394?v=3","gravatar_id":"","url":"https://api.github.com/users/dancek","html_url":"https://github.com/dancek","followers_url":"https://api.github.com/users/dancek/followers","following_url":"https://api.github.com/users/dancek/following{/other_user}","gists_url":"https://api.github.com/users/dancek/gists{/gist_id}","starred_url":"https://api.github.com/users/dancek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancek/subscriptions","organizations_url":"https://api.github.com/users/dancek/orgs","repos_url":"https://api.github.com/users/dancek/repos","events_url":"https://api.github.com/users/dancek/events{/privacy}","received_events_url":"https://api.github.com/users/dancek/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T21:50:43Z","updated_at":"2015-11-28T21:50:43Z","body":"I just tried to implement a horizontal swipe handler that does different things based on the number of fingers used. I'm using https://github.com/RyanMullins/angular-hammer and testing on an LG G2, and it looks like `pan` and `swipe` events *always* have exactly one pointer. I tried setting `{pointers:2}` and such, which just causes no events to be registered ever. I do get `pinch` events with two or three pointers.\r\n\r\nNot sure where the issue is, and I'm not too keen to debug this further, but just FYI."}}