{"action":"created","issue":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/1005","repository_url":"https://api.github.com/repos/hammerjs/hammer.js","labels_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/1005/labels{/name}","comments_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/1005/comments","events_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/1005/events","html_url":"https://github.com/hammerjs/hammer.js/issues/1005","id":168152415,"number":1005,"title":"Adding recognizers dynamically","user":{"login":"OpherV","id":3951311,"avatar_url":"https://avatars.githubusercontent.com/u/3951311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpherV","html_url":"https://github.com/OpherV","followers_url":"https://api.github.com/users/OpherV/followers","following_url":"https://api.github.com/users/OpherV/following{/other_user}","gists_url":"https://api.github.com/users/OpherV/gists{/gist_id}","starred_url":"https://api.github.com/users/OpherV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpherV/subscriptions","organizations_url":"https://api.github.com/users/OpherV/orgs","repos_url":"https://api.github.com/users/OpherV/repos","events_url":"https://api.github.com/users/OpherV/events{/privacy}","received_events_url":"https://api.github.com/users/OpherV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-28T17:33:08Z","updated_at":"2016-12-05T20:14:28Z","closed_at":null,"body":"Hi, I'm the author of #991 (SVG path trace recognizer)\n\n**tl;dr I suggest an enhancement to allow recognizer plugins for Hammer.js**\n\nOriginally, and like I wrote in the PR comment, Hammer architecture currently does not easily allow adding recognizers dynamically. It assumes all recognizers are pre-packed with the lib, which makes it harder to write external modules. This means that extra functionality that might be relevant to _some_ but not _all_ use cases will either be deemed too out of scope and thus not included with hammer, or get included and bloat up the core lib.\n\nUse case: Other than the SVG path follow I've already implemented, I'm also [working on implementing an arbitrary shape/stroke recognizer](https://github.com/OpherV/hammer.js/tree/feature/stroke_recognizer) based on [$1 unistroke recognizer](http://depts.washington.edu/aimgroup/proj/dollar/). This is a very specific use case that relies on an external library, with a different license than that of Hammerjs. It would be cool if Hammer could support it via external plugins, but without having to include both the implementation and the library in the source code.\n"},"comment":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/comments/264963976","html_url":"https://github.com/hammerjs/hammer.js/issues/1005#issuecomment-264963976","issue_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/1005","id":264963976,"user":{"login":"OpherV","id":3951311,"avatar_url":"https://avatars.githubusercontent.com/u/3951311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpherV","html_url":"https://github.com/OpherV","followers_url":"https://api.github.com/users/OpherV/followers","following_url":"https://api.github.com/users/OpherV/following{/other_user}","gists_url":"https://api.github.com/users/OpherV/gists{/gist_id}","starred_url":"https://api.github.com/users/OpherV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpherV/subscriptions","organizations_url":"https://api.github.com/users/OpherV/orgs","repos_url":"https://api.github.com/users/OpherV/repos","events_url":"https://api.github.com/users/OpherV/events{/privacy}","received_events_url":"https://api.github.com/users/OpherV/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T20:14:28Z","updated_at":"2016-12-05T20:14:28Z","body":"@arschmitz Like I promised it's finally out! \r\nIt's an interactive video/html5 game for the Detroit Pistons\r\nHammer.js is used to drive the game mechanic on mobile, but here's a secret link that lets you see it on desktop as well:\r\n\r\nhttp://pistons.com/1on1?forcetouch=true\r\n\r\n![pistons](https://cloud.githubusercontent.com/assets/3951311/20900729/10eda184-bb38-11e6-8440-63582cda27d1.gif)\r\n\r\n\r\nCheck it out :)\r\n\r\n"}}
{"actor":{"display_login":"OpherV"}}