{"action":"created","issue":{"url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/17","labels_url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/17/comments","events_url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/17/events","html_url":"https://github.com/chriswessels/meteor-hammer/issues/17","id":83134654,"number":17,"title":"requireFailure for vertical/horizontal pan","user":{"login":"skylerapp","id":9846145,"avatar_url":"https://avatars.githubusercontent.com/u/9846145?v=3","gravatar_id":"","url":"https://api.github.com/users/skylerapp","html_url":"https://github.com/skylerapp","followers_url":"https://api.github.com/users/skylerapp/followers","following_url":"https://api.github.com/users/skylerapp/following{/other_user}","gists_url":"https://api.github.com/users/skylerapp/gists{/gist_id}","starred_url":"https://api.github.com/users/skylerapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skylerapp/subscriptions","organizations_url":"https://api.github.com/users/skylerapp/orgs","repos_url":"https://api.github.com/users/skylerapp/repos","events_url":"https://api.github.com/users/skylerapp/events{/privacy}","received_events_url":"https://api.github.com/users/skylerapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-31T16:55:34Z","updated_at":"2015-06-07T19:50:01Z","closed_at":"2015-06-05T14:16:54Z","body":"Hi, \r\nFirst of all, thank you for the package, it works great.\r\n\r\nI'm trying to implement a \"cards\" kind of interface like this example (https://cdn.rawgit.com/hammerjs/hammer.js/master/tests/manual/nested.html) and so far have got the horizontal pans working but I can't get the vertical pans to work. Somehow the requireFailure won't work for me and the vertical pans only work after a horizontal pan is triggered (I'm trying to have both directions work independently).\r\n\r\nThis is my config code:\r\n\r\n    configureHammer: function () {\r\n        return function (hammer, t) {\r\n            var vertical = new Hammer.Pan({\r\n                event: 'panv',\r\n                direction: Hammer.DIRECTION_VERTICAL\r\n            });\r\n            var horizontal = new Hammer.Pan({\r\n                event: 'panh',\r\n                direction: Hammer.DIRECTION_HORIZONTAL\r\n            });\r\n            vertical.requireFailure(horizontal);\r\n\r\n            hammer.add([vertical, horizontal]);\r\n\r\n            return hammer;\r\n        }\r\n    },\r\n\r\nAnd I have a hammertoucharea like so:\r\n\r\n        {{#HammerTouchArea configureCallback=configureHammer gestureMap=templateGestures}}\r\n        ...\r\n        {{/HammerTouchArea}}\r\n\r\nAnd my templateGestures are simply \"panleft\", \"panright\", \"panup\", and \"pandown\"\r\n\r\nWould you have any suggestions? Am I doing something wrong?\r\n\r\nOlivier"},"comment":{"url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/comments/109792778","html_url":"https://github.com/chriswessels/meteor-hammer/issues/17#issuecomment-109792778","issue_url":"https://api.github.com/repos/chriswessels/meteor-hammer/issues/17","id":109792778,"user":{"login":"skylerapp","id":9846145,"avatar_url":"https://avatars.githubusercontent.com/u/9846145?v=3","gravatar_id":"","url":"https://api.github.com/users/skylerapp","html_url":"https://github.com/skylerapp","followers_url":"https://api.github.com/users/skylerapp/followers","following_url":"https://api.github.com/users/skylerapp/following{/other_user}","gists_url":"https://api.github.com/users/skylerapp/gists{/gist_id}","starred_url":"https://api.github.com/users/skylerapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skylerapp/subscriptions","organizations_url":"https://api.github.com/users/skylerapp/orgs","repos_url":"https://api.github.com/users/skylerapp/repos","events_url":"https://api.github.com/users/skylerapp/events{/privacy}","received_events_url":"https://api.github.com/users/skylerapp/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T19:50:01Z","updated_at":"2015-06-07T19:50:01Z","body":"Hi Chris,\r\n\r\nThanks for the answer. I ended up switching to the original package and got it to work following their examples. But now that I am more comfortable with hammer.js, I can see why it wasn't working.\r\n\r\nThanks for your help anyways!"}}