{"action":"reopened","issue":{"url":"https://api.github.com/repos/RyanMullins/angular-hammer/issues/42","labels_url":"https://api.github.com/repos/RyanMullins/angular-hammer/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/RyanMullins/angular-hammer/issues/42/comments","events_url":"https://api.github.com/repos/RyanMullins/angular-hammer/issues/42/events","html_url":"https://github.com/RyanMullins/angular-hammer/issues/42","id":65504407,"number":42,"title":"ghostclicks and iScroll","user":{"login":"kosich","id":3994718,"avatar_url":"https://avatars.githubusercontent.com/u/3994718?v=3","gravatar_id":"","url":"https://api.github.com/users/kosich","html_url":"https://github.com/kosich","followers_url":"https://api.github.com/users/kosich/followers","following_url":"https://api.github.com/users/kosich/following{/other_user}","gists_url":"https://api.github.com/users/kosich/gists{/gist_id}","starred_url":"https://api.github.com/users/kosich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosich/subscriptions","organizations_url":"https://api.github.com/users/kosich/orgs","repos_url":"https://api.github.com/users/kosich/repos","events_url":"https://api.github.com/users/kosich/events{/privacy}","received_events_url":"https://api.github.com/users/kosich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T17:29:49Z","updated_at":"2015-03-31T21:25:19Z","closed_at":null,"body":"For some reason, while using **ng-hammerjs + ng-iscroll** ghostClicks prevention some times fails: tap event handler triggers twice and even scrolls parent ng-iscroll element\r\n\r\nsome settings I'm using:\r\nng-hammer `preventGhost : true` -- need it for touch laptops\r\nng-iscroll `preventDefault: false` -- need it for forms to interact properly (see [this issue](https://github.com/cubiq/iscroll/issues/576#issuecomment-40585882))\r\n\r\nso I've come up with a bit different ghost clicks elimination implementation, based on blocking **touch** events for some time after **mouse** events were triggered on the element and *vice versa*.\r\n\r\nPlease, see [this gist](https://gist.github.com/kosich/23188dd86633b6c2efb7)\r\n\r\nreplace `preventGhosts` [function  in your](https://github.com/RyanMullins/angular-hammer/blob/master/angular.hammer.js#L447-L521) `angular.hammer.js`with code from the gist ( uncomment the console calls if needed to see whats happening )\r\n\r\n**Note**: this has been tested only against chrome's \"notebook with touch\" emulation and **HAS NOT** been tested on a real device.\r\n\r\nSo, to sum up: if I'm not alone in running into such an issue and if this code works well on real touch devices I could create a PR.\r\n\r\nThanks."}}